--- /dev/null
+---
+issues:
+ - |
+ ERROR: Not installed on host: python3.8.13
+ ERROR: Can not perform a '--user' install. User site-packages are not
+ visible in this virtualenv.
+fixes:
+ - |
+ Set the default version to 'python3' instead of '3.8.x' since some of the
+ older images may not have the specifc version installed. The default
+ version is only used when lf-env.sh is not available.
+
+ CR I821a86ac3b54f2 sets and uses python 3.x version made available by pyenv
+ therefore remove the --user option which is no longer required.
set -eufo pipefail
# Souce the python version from lf-env.sh if available.
-python="python3.8.13"
+python="python3"
if [[ -f ~/lf-env.sh ]]; then
source ~/lf-env.sh
lf-activate-venv --python "$python" lftools
fi
fi
- python3 -m pip install --user --quiet --upgrade pip
- python3 -m pip install --user --quiet --no-warn-script-location --upgrade setuptools
- python3 -m pip install --user --quiet --no-warn-script-location --upgrade lftools[openstack]
- python3 -m pip install --user --quiet --no-warn-script-location --upgrade \
+ python3 -m pip install --quiet --upgrade pip
+ python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools
+ python3 -m pip install --quiet --no-warn-script-location --upgrade lftools[openstack]
+ python3 -m pip install --quiet --no-warn-script-location --upgrade \
--upgrade-strategy eager -r "$requirements_file"
# installs are silent, show version details in log
python3 --version