Fix!: Un-pin tox version from 3.27.1 and remove tox-pyenv
[releng/global-jjb.git] / shell / tox-install.sh
index 3734a7f..e4bb50d 100644 (file)
@@ -14,14 +14,12 @@ echo "---> tox-install.sh"
 # Use -x to show value of $PYTHON in output
 set -eux -o pipefail
 
-# Tox version is pulled in through detox to mitigate version conflict
-
-
-if [[ $PYTHON == "python2" ]]; then
-    $PYTHON -m pip install --user --quiet --upgrade tox-pyenv more-itertools~=5.0.0
-else
-    $PYTHON -m pip install --user --quiet --upgrade tox-pyenv
-fi
+# shellcheck disable=SC1090
+source ~/lf-env.sh
 
+lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv
 
+# installs are silent, show version details in log
+$PYTHON --version
+$PYTHON -m pip --version
 $PYTHON -m pip freeze