chiark / gitweb /
when running `pip install` tests, cache downloads from pypi
authorHans-Christoph Steiner <hans@eds.org>
Mon, 14 Apr 2014 20:12:17 +0000 (16:12 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 23 Apr 2014 02:59:27 +0000 (22:59 -0400)
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

jenkins-build

index 7cc2b4be42cb7063e56760ecc322046800848e6c..dbdea777fc849bc03f7c63114499e7ad5a759d8d 100755 (executable)
@@ -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