From ab616fad7cee9497ca36c2ca946ce0fca281e9bc Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 9 Dec 2015 15:07:23 -0500 Subject: [PATCH] Do the sdist check in a virtualenv We trigger easy_install if we don't do this, which is not the point of the test. Change-Id: Iedd79d59ce0134017d9961fbe316babaee04e72f --- jenkins/scripts/run-pep8.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/scripts/run-pep8.sh b/jenkins/scripts/run-pep8.sh index 8bfb3e49fc..f25ee73502 100755 --- a/jenkins/scripts/run-pep8.sh +++ b/jenkins/scripts/run-pep8.sh @@ -18,8 +18,9 @@ venv=${1:-pep8} export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt -python setup.py sdist +virtualenv sdist_check && sdist_check/bin/pip install pbr && sdist_check/bin/python setup.py sdist sdistrc=$? +rm -rf sdist_check tox -v -e$venv rc=$?