Reproducer bash script sets USER_PYTHON_OVERRIDE=python2
Bug #1828098 reported by
Ronelle Landy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Ronelle Landy |
Bug Description
When running the reproducer on rhel 8 and other platforms that support python3, we should not force a python2 install.
We can't only support python2.
tags: | added: ci |
Changed in tripleo: | |
status: | New → Triaged |
assignee: | nobody → Ronelle Landy (rlandy) |
milestone: | none → train-1 |
Changed in tripleo: | |
importance: | Undecided → Medium |
Changed in tripleo: | |
milestone: | train-1 → train-2 |
Changed in tripleo: | |
milestone: | train-2 → train-3 |
Changed in tripleo: | |
milestone: | train-3 → ussuri-1 |
Changed in tripleo: | |
milestone: | ussuri-1 → ussuri-2 |
Changed in tripleo: | |
milestone: | ussuri-2 → ussuri-3 |
To post a comment you must log in.
install-deps will force python_cmd to be python_2 unless it's set. OVERRIDE for rhel-8 to be python-3.
We need to set USER_PYTHON_
In fact, this can never work ...
python_cmd() { n=unknown n_major_ version= unknown cmd=${USER_ PYTHON_ OVERRIDE: =python2}
distributio
distributio
# we prefer python2 because on few systems python->python3
python_
if [ -f /etc/os-release ]; then
distribution_ major_version= ${VERSION_ ID%.*} "RedHat" major_version" -ge "8" ]; then
python_ cmd=${USER_ PYTHON_ OVERRIDE: =python3}
. /etc/os-release
case $NAME in
"Red Hat"*) distribution=
if [ "$distribution_
fi
If we don't export the override, python_cmd will be set to python2 and not be reset