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
Default to python3 on Debian 10 #63097
Conversation
3fcdbb1
to
a9a5b94
Compare
53c1467
to
faea8f1
Compare
The default python version on Debian 9 is Python 2.7. As such, I don't think this change should be made. https://wiki.debian.org/Python#Supported_Python_Versions
Buster (10) is the first version of Debian to default to Python3. |
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.
@johnbui423 Could you change to Debian 10?
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.
@johnbui423 Suggested changes:
test/integration/targets/interpreter_discovery_python/tasks/main.yml
Outdated
Show resolved
Hide resolved
Co-Authored-By: Oleg Kupriyanov <49687691+okupriyanov@users.noreply.github.com>
…in.yml Co-Authored-By: Oleg Kupriyanov <49687691+okupriyanov@users.noreply.github.com>
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, this is good, but will have to be in >= 2.10 only. I think it's too late to change the behavior for 2.9 (ie should not be backported).
rebuild_merge |
SUMMARY
For Debian 10, I propose to default to python3 when using
ansible_python_interpreter = auto
.Like Ubuntu 16, Debian 9 comes with both python2 and python3. Again like Ubuntu 16, I propose to default to python3 when usingansible_python_interpreter = auto
.People that want to stick to the python 2, can set
ansible_python_interpreter = auto_legacy
to default to python 2 (which is currently still the default setting).ISSUE TYPE
COMPONENT NAME
BaseAction