Skip to content

Commit

Permalink
waf: require python 3.8.0 or later
Browse files Browse the repository at this point in the history
for 4.5.x we no longer support py2
  • Loading branch information
tridge committed May 4, 2023
1 parent 40a3e07 commit 91496a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Tools/ardupilotwaf/dronecangen.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ def configure(cfg):
"""
setup environment for uavcan header generator
"""
cfg.load('python')
cfg.check_python_version(minver=(2,7,0))

env = cfg.env
env.DC_DSDL_COMPILER_DIR = cfg.srcnode.make_node('modules/DroneCAN/dronecan_dsdlc/').abspath()
env.DC_DSDL_COMPILER = env.DC_DSDL_COMPILER_DIR + '/dronecan_dsdlc.py'
Expand Down
3 changes: 0 additions & 3 deletions Tools/ardupilotwaf/mavgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,5 @@ def configure(cfg):
"""
setup environment for mavlink header generator
"""
cfg.load('python')
cfg.check_python_version(minver=(2,7,0))

env = cfg.env
env.MAVLINK_DIR = cfg.srcnode.make_node('modules/mavlink/').abspath()
4 changes: 4 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ def configure(cfg):
# also in env for hrt.c
cfg.env.AP_BOARD_START_TIME = cfg.options.board_start_time

# require python 3.8.x or later
cfg.load('python')
cfg.check_python_version(minver=(3,8,0))

cfg.load('ap_library')

cfg.msg('Setting board to', cfg.options.board)
Expand Down

0 comments on commit 91496a1

Please sign in to comment.