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
This commit is contained in:
Monty Taylor 2015-12-09 15:07:23 -05:00 committed by Andreas Jaeger
parent 73cd1a8733
commit ab616fad7c

View File

@ -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=$?