waf: require python 3.8.0 or later

for 4.5.x we no longer support py2
This commit is contained in:
Andrew Tridgell 2023-04-22 13:36:27 +10:00
parent 40a3e076fc
commit 91496a1e22
3 changed files with 4 additions and 6 deletions

View File

@ -66,9 +66,6 @@ def configure(cfg):
""" """
setup environment for uavcan header generator setup environment for uavcan header generator
""" """
cfg.load('python')
cfg.check_python_version(minver=(2,7,0))
env = cfg.env env = cfg.env
env.DC_DSDL_COMPILER_DIR = cfg.srcnode.make_node('modules/DroneCAN/dronecan_dsdlc/').abspath() 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' env.DC_DSDL_COMPILER = env.DC_DSDL_COMPILER_DIR + '/dronecan_dsdlc.py'

View File

@ -94,8 +94,5 @@ def configure(cfg):
""" """
setup environment for mavlink header generator setup environment for mavlink header generator
""" """
cfg.load('python')
cfg.check_python_version(minver=(2,7,0))
env = cfg.env env = cfg.env
env.MAVLINK_DIR = cfg.srcnode.make_node('modules/mavlink/').abspath() env.MAVLINK_DIR = cfg.srcnode.make_node('modules/mavlink/').abspath()

View File

@ -475,6 +475,10 @@ def configure(cfg):
# also in env for hrt.c # also in env for hrt.c
cfg.env.AP_BOARD_START_TIME = cfg.options.board_start_time 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.load('ap_library')
cfg.msg('Setting board to', cfg.options.board) cfg.msg('Setting board to', cfg.options.board)