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:
Jesse Pretorius 2018-09-04 17:29:43 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 7189ca7f1e
commit 2bc1ca0c81
1 changed files with 1 additions and 1 deletions

View File

@ -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"