ansible: add python3 to AIX hosts #2564
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've run this on all of our test/release AIX 7.1 and 7.2 hosts. It installs Python 3 (3.7.9 at this time) into
/opt/freeware/bin
, e.g./opt/freeware/bin/python3
. Crucially it leaves the existing Python 2 installation alone (sopython
still runs Python 2).On the AIX 7.2 machines there is already a Python 3.6.12 installation in
/opt/bin/python3
. We end up with three versions of Python installed (2.7.18, 3.6.12 and 3.7.9) but they're in different directories and the python3 binary we pick up depends on the path. If we've run through select-compiler.sh and prepend/opt/freeware/bin
to the pathpython3
will be 3.7.9.build/jenkins/scripts/select-compiler.sh
Line 103 in f95880c
I haven't found a CI job that will actually use Python 3 yet as they either directly call
python configure ...
(i.e. invokepython
which is Python 2) or they runmake run-ci
which defaults thePYTHON
make variable topython
(again Python 2). We'll probably need to directly runconfigure ...
(as there is Python autodetection/selection logic in theconfigure
script) and/or set the defaultPYTHON
in the makefile topython3
in master/16.x onwards.cc @nodejs/platform-aix