Skip to content
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

Merged
merged 2 commits into from
May 4, 2023
Merged

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Mar 22, 2023

for 4.5.x we no longer support py2

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Mar 22, 2023

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))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cfg.check_python_version(minver=(3,8,0))
cfg.check_python_version(minver=(3,6,0))

Let Ubuntu 18.04 continue to function

Copy link
Contributor

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

Copy link
Contributor

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.

@tridge tridge dismissed peterbarker’s stale review April 22, 2023 05:38

discussed with Peter, agreed on 3.8

Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tridge tridge force-pushed the pr-py3-required branch from b938b38 to afa6e7f Compare May 4, 2023 05:08
@tridge tridge merged commit ed6352f into ArduPilot:master May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants