Add the --no-download flag to virtualenv, to prevent it getting the latest

version of pip, setuptools, wheel from PyPI on creation.

Virtualenv will use bundled version of those tools instead
This commit is contained in:
Joe Rickerby
2020-02-18 22:03:14 +00:00
parent fc20273f8b
commit 5187633e26
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
# there are no dependencies that were pulled in at build time.
pip install {dependency_install_flags} virtualenv
venv_dir=`mktemp -d`/venv
python -m virtualenv "$venv_dir"
python -m virtualenv --no-download "$venv_dir"
# run the tests in a subshell to keep that `activate`
# script from polluting the env