X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fpython-tools-install.sh;h=e5d836bfcd600d90ab00123be4f4b1d42b76f231;hb=refs%2Ftags%2Fv0.82.3;hp=8251487d9c3639dc2195ec919fc75184003c4033;hpb=1a7660851f6e1a32ff2485b75042c65fa8c6e611;p=releng%2Fglobal-jjb.git diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index 8251487d..e5d836bf 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -13,12 +13,14 @@ echo "---> python-tools-install.sh" 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 + # Save the virtualenv path + echo "$lf_venv" > "/tmp/.os_lf_venv" elif [[ -d /opt/pyenv ]]; then - echo "---> Setting up pyenv" + echo "Setup up pyenv" export PYENV_ROOT="/opt/pyenv" export PATH="$PYENV_ROOT/bin:$PATH" pyenv versions @@ -68,10 +70,10 @@ EOF 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