cache the pip tarball

there is no need to download the pip tarball over and over again
on rerun. Use the cached value.

Change-Id: Ibcc1807ba2aca062f69839212f05ac9394db9448
This commit is contained in:
Sean Dague 2014-03-28 15:14:56 -04:00
parent 7ee8f11588
commit 33ff33b1fb

View File

@ -71,12 +71,13 @@ function install_get_pip {
}
function install_pip_tarball {
if [[ ! -r $FILES/pip-$INSTALL_PIP_VERSION.tar.gz ]]; then
(cd $FILES; \
curl -O $PIP_TAR_URL; \
tar xvfz pip-$INSTALL_PIP_VERSION.tar.gz 1>/dev/null; \
cd pip-$INSTALL_PIP_VERSION; \
sudo -E python setup.py install 1>/dev/null; \
)
tar xvfz pip-$INSTALL_PIP_VERSION.tar.gz 1>/dev/null)
fi
(cd $FILES/pip-$INSTALL_PIP_VERSION; \
sudo -E python setup.py install 1>/dev/null)
}
# Show starting versions