Use unique temporary directory for virtual environment on linux
This commit is contained in:
@@ -88,8 +88,9 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
|
|||||||
# Set up a virtual environment to install and test from, to make sure
|
# Set up a virtual environment to install and test from, to make sure
|
||||||
# there are no dependencies that were pulled in at build time.
|
# there are no dependencies that were pulled in at build time.
|
||||||
"$PYBIN/pip" install virtualenv
|
"$PYBIN/pip" install virtualenv
|
||||||
"$PYBIN/virtualenv" tmp-test-env
|
venv_dir=`mktemp -d`/venv
|
||||||
source tmp-test-env/bin/activate
|
"$PYBIN/virtualenv" $venv_dir
|
||||||
|
source $venv_dir/bin/activate
|
||||||
|
|
||||||
# Check that we are using the Python from the virtual environment
|
# Check that we are using the Python from the virtual environment
|
||||||
which python
|
which python
|
||||||
|
|||||||
Reference in New Issue
Block a user