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 <agardner@linuxfoundation.org>
Change-Id: I2f964ec5123bd4a3b5fcc75f3d1ba38c0810cd8a
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
# 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"