From c80aa5b36c3a2d08dc47d9c5d1cc2366cd161863 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Wed, 2 Sep 2020 13:01:19 -0400 Subject: [PATCH] Tox is called from system python2 which tox /usr/bin/tox tox --version 3.14.5 imported from /usr/lib/python2.7/site-packages/tox/__init__.pyc if $PYTHON=python3 we are not updaing tox to the lastest version. for some reason running this old tox broke things. this appears to fix. Also revert the lfenv stuff that we don't want in tox-run Signed-off-by: Aric Gardner Change-Id: I2f964ec5123bd4a3b5fcc75f3d1ba38c0810cd8a --- shell/tox-install.sh | 7 ++----- shell/tox-run.sh | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/shell/tox-install.sh b/shell/tox-install.sh index 9ad33295..0434b3a2 100644 --- a/shell/tox-install.sh +++ b/shell/tox-install.sh @@ -28,11 +28,8 @@ if [[ -f /etc/lsb-release ]]; then fi if [[ $done != "True" ]]; then - if [[ $PYTHON == "python2" ]]; then - $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0 - else - $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv - fi + python -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0 + python3 -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv fi # installs are silent, show version details in log diff --git a/shell/tox-run.sh b/shell/tox-run.sh index d7f4be2b..91e040ad 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -13,12 +13,6 @@ echo "---> tox-run.sh" # do not use -o pipefail set -eux -# shellcheck disable=SC1090 -source ~/lf-env.sh - -# Version controlled by JJB_VERSION -lf-activate-venv readline - ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox" ARCHIVE_DOC_DIR="$WORKSPACE/archives/docs" mkdir -p "$ARCHIVE_TOX_DIR" -- 2.16.6