[gate] allow pip caching

The pip cache is useful for repeat operations and doesn't seem to have
any real downsides.

Change-Id: Iadb21a118f8d725911a9baa6a9264b8644012af9
This commit is contained in:
Chris Wedgwood 2018-10-22 00:06:26 +00:00
parent b99d39dd95
commit d4ac063163
1 changed files with 6 additions and 6 deletions

View File

@ -54,18 +54,18 @@ function ansible_install {
jq
fi
sudo -H -E pip install --no-cache-dir --upgrade pip
sudo -H -E pip install --no-cache-dir --upgrade setuptools
sudo -H -E pip install --upgrade pip
sudo -H -E pip install --upgrade setuptools
# NOTE(lamt) Preinstalling a capped version of cmd2 to address bug:
# https://github.com/python-cmd2/cmd2/issues/421
sudo -H -E pip install --no-cache-dir --upgrade "cmd2<=0.8.7"
sudo -H -E pip install --no-cache-dir --upgrade pyopenssl
sudo -H -E pip install --upgrade "cmd2<=0.8.7"
sudo -H -E pip install --upgrade pyopenssl
# NOTE(srwilkers): Pinning ansible to 2.5.5, as pip installs 2.6 by default.
# 2.6 introduces a new command flag (init) for the docker_container module
# that is incompatible with what we have currently. 2.5.5 ensures we match
# what's deployed in the gates
sudo -H -E pip install --no-cache-dir --upgrade "ansible==2.5.5"
sudo -H -E pip install --no-cache-dir --upgrade \
sudo -H -E pip install --upgrade "ansible==2.5.5"
sudo -H -E pip install --upgrade \
ara \
yq
}