-
Notifications
You must be signed in to change notification settings - Fork 18.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waf: require python 3.8.0 or later #23287
Conversation
LGTM. The error is descriptive. 3.8 matches what's in Ubuntu 20.04. ryan@ryan-B650:~/Development/ardu_ws/src/ardupilot$ python2 waf configure
Setting top to : /home/ryan/Development/ardu_ws/src/ardupilot
Setting out to : /home/ryan/Development/ardu_ws/src/ardupilot/build
Autoconfiguration : enabled
Checking for program 'python' : /usr/bin/python2
Checking for python version >= 3.8.0 : 2.7.18
The python version is too old, expecting (3, 8, 0)
(complete log in /home/ryan/Development/ardu_ws/src/ardupilot/build/config.log) |
@@ -456,6 +456,10 @@ def configure(cfg): | |||
if cfg.options.num_aux_imus > 0: | |||
cfg.define('INS_AUX_INSTANCES', cfg.options.num_aux_imus) | |||
|
|||
# require python 3.8.x or later | |||
cfg.load('python') | |||
cfg.check_python_version(minver=(3,8,0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cfg.check_python_version(minver=(3,8,0)) | |
cfg.check_python_version(minver=(3,6,0)) |
Let Ubuntu 18.04 continue to function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, 3.8 don't bring much functionnality against 3.6, so using 3.6 is good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, 3.8 don't bring much functionnality against 3.6, so using 3.6 is good
Discussed this with tridge.
bionic came with 3.8 and it's almost defunct.
Python 3.6 is also out of support.
discussed with Peter, agreed on 3.8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
for 4.5.x we no longer support py2
for 4.5.x we no longer support py2