From: Hans-Christoph Steiner Date: Mon, 14 Apr 2014 20:12:17 +0000 (-0400) Subject: when running `pip install` tests, cache downloads from pypi X-Git-Tag: 0.2~112^2~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6f6c074a6bd2e4f5a57e399f174ad05b681c786e;p=fdroidserver.git when running `pip install` tests, cache downloads from pypi Since this runs frequently without much change, it makes sense to cache the downloaded source packages as much as possible. There are probably better ways to do this, but this is really easy. https://stackoverflow.com/questions/4806448/how-do-i-install-from-a-local-cache-with-pip --- diff --git a/jenkins-build b/jenkins-build index 7cc2b4be..dbdea777 100755 --- a/jenkins-build +++ b/jenkins-build @@ -25,6 +25,14 @@ if [ -z $ANDROID_HOME ]; then fi fi + +#------------------------------------------------------------------------------# +# cache pypi downloads +if [ -z $PIP_DOWNLOAD_CACHE ]; then + export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache +fi + + #------------------------------------------------------------------------------# # required Java 7 keytool/jarsigner for :file support