Browse code

Merge "Allow user to override pip cache location"

Jenkins authored on 2012/07/17 00:59:46
Showing 1 changed files
... ...
@@ -458,7 +458,7 @@ function pip_install {
458 458
     else
459 459
         CMD_PIP=/usr/bin/pip-python
460 460
     fi
461
-    sudo PIP_DOWNLOAD_CACHE=/var/cache/pip \
461
+    sudo PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-/var/cache/pip} \
462 462
         HTTP_PROXY=$http_proxy \
463 463
         HTTPS_PROXY=$https_proxy \
464 464
         $CMD_PIP install --use-mirrors $@