X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fpython-tools-install.sh;h=59fb9700afb24e7c949efc6a8dc7c616f63feda4;hb=03a8000420795c1275e9496b0dce978dabad01c4;hp=c81736092f7e05e55ac721ca7fb8d2301ea53ab9;hpb=621934533e5283057f15d573e765aa8727d2ca19;p=releng%2Fglobal-jjb.git diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index c8173609..59fb9700 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -17,8 +17,10 @@ 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 @@ -69,7 +71,9 @@ EOF fi python3 -m pip install --quiet --upgrade pip - python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools + # TODO: temporarily pinning setuptools to avoid plugin version format issues + # https://github.com/pypa/setuptools/issues/3772#issuecomment-1384342813 + python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools<66.0.0 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"