remove cache use for pip
authorymh <ymh.work@gmail.com>
Sat, 22 Aug 2015 01:04:21 +0200
changeset 28 19d1e055ff4e
parent 27 2b492e3056c1
child 29 690b89879211
remove cache use for pip
src/fablib/core.py
--- a/src/fablib/core.py	Fri May 15 01:31:02 2015 +0200
+++ b/src/fablib/core.py	Sat Aug 22 01:04:21 2015 +0200
@@ -210,7 +210,7 @@
         if module_to_uninstall:
             with settings(warn_only=True):
                 run("pip uninstall -y %s" % module_to_uninstall)
-        run("pip install \"%s\"" % remotepath)
+        run("pip install --no-cache-dir \"%s\"" % remotepath)
 
 def collectstatic(remotepath, remotevirtualenvpath, platform_web_module, module_settings=""):
     print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath))
@@ -285,7 +285,7 @@
         run("python create_python_env.py")
         run("python project-boot.py \"%s\"" % remotevirtualenvpath)
     with prefix("source \"%s\"" % activate_path):
-        run("pip install -r \"%s\"" % os.path.join(remote_venv_export_path,"virtualenv","web","res","srvr_requirements.txt"))
+        run("pip install --no-cache-dir -r \"%s\"" % os.path.join(remote_venv_export_path,"virtualenv","web","res","srvr_requirements.txt"))
 
 def do_sync_comp(key, export_path):
     print("do_sync_comp with  path %s" % (export_path))