Bootstrap ansible virtualenv with --never-download
To prevent virtualenv trying to download the latest pip/setuptools when creating the venv, and failing due to pip.conf during an upgrade, we tell it not to do that and rather just use whatever it already has. Closes-Bug: #1790158 Change-Id: I8424de61534e9ba7853e4366834d005d5cd8ec92
This commit is contained in:
parent
7189ca7f1e
commit
2bc1ca0c81
|
@ -126,7 +126,7 @@ export UPPER_CONSTRAINTS_FILE=${UPPER_CONSTRAINTS_FILE:-"$UPPER_CONSTRAINTS_PROT
|
|||
# - Ubuntu Xenial has 15.0.1, holding pip 8.1.1, setuptools 20.3, wheel 0.29
|
||||
# See also: https://packages.ubuntu.com/xenial/python-virtualenv
|
||||
|
||||
virtualenv --python=${PYTHON_EXEC_PATH} --clear /opt/ansible-runtime
|
||||
virtualenv --python=${PYTHON_EXEC_PATH} --never-download --clear /opt/ansible-runtime
|
||||
|
||||
# The vars used to prepare the Ansible runtime venv
|
||||
PIP_COMMAND="/opt/ansible-runtime/bin/pip"
|
||||
|
|
Loading…
Reference in New Issue