From: Eric Ball Date: Sat, 15 Dec 2018 01:20:49 +0000 (-0800) Subject: Pass PYTHONPATH to tox env to fix install issues X-Git-Tag: v0.29.0~7^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F14009%2F2;p=releng%2Fglobal-jjb.git Pass PYTHONPATH to tox env to fix install issues We have seen install issues that only seem to happen on build machines. The reason these problems do not appear on local builds is still not clear, but passing in the PYTHONPATH (set to the working directory) is an innocuous change that fixes the problem. Change-Id: I70217404b5a1f993d233714e2e1cac4ae9e7fd2d Signed-off-by: Eric Ball --- diff --git a/shell/tox-run.sh b/shell/tox-run.sh index 47380010..3f1f92a9 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -24,6 +24,11 @@ if [ -d "/opt/pyenv" ]; then export PATH="$PYENV_ROOT/bin:$PATH" fi +# Set and pass in PYTHONPATH to circumvent installation bug in tox>=3.2.0 +PYTHONPATH=$(pwd) +export PYTHONPATH +export TOX_TESTENV_PASSENV=PYTHONPATH + set +e # Allow detox to fail so that we can collect the logs in the next step PARALLEL="${PARALLEL:-true}"