reinstall distribute
authorymh <ymh.work@gmail.com>
Thu, 14 Jun 2012 22:32:13 +0200
changeset 677 fe9cfbb91909
parent 676 1bbf2fe38a32
child 678 c99ef0c244c0
reinstall distribute
sbin/sync/fabfile.py
virtualenv/res/lib/lib_create_env.py
virtualenv/res/src/distribute-0.6.14.tar.gz
virtualenv/res/src/distribute-0.6.24.tar.gz
virtualenv/web/res/res_create_env.py
--- a/sbin/sync/fabfile.py	Thu Jun 14 21:42:20 2012 +0200
+++ b/sbin/sync/fabfile.py	Thu Jun 14 22:32:13 2012 +0200
@@ -153,10 +153,12 @@
         prefix_str = "source \"%s\"" % os.path.join(env.remote_baseline_venv, "bin/activate")
     else:
         prefix_str = "echo"
+    with settings(warn_only=True):
+        run("rm -fr \"%s\"" % remotevirtualenvpath)
     run("mkdir -p \"%s\"" % remotevirtualenvpath)
     with prefix(prefix_str), cd(os.path.join(remote_venv_export_path,"virtualenv","web")):
         run("python create_python_env.py")
-        run("python project-boot.py --unzip-setuptools --no-site-packages --clear --type-install=local \"%s\"" % remotevirtualenvpath)
+        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"))
 
--- a/virtualenv/res/lib/lib_create_env.py	Thu Jun 14 21:42:20 2012 +0200
+++ b/virtualenv/res/lib/lib_create_env.py	Thu Jun 14 22:32:13 2012 +0200
@@ -13,6 +13,7 @@
 
 URLS = {
     #'': {'setup': '', 'url':'', 'local':''},
+    'DISTRIBUTE': {'setup': 'distribute', 'url':'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz', 'local':"distribute-0.6.24.tar.gz", 'install': {'method': 'pip', 'option_str': None, 'dict_extra_env': None}},
     'DJANGO': {'setup': 'django', 'url': 'http://www.djangoproject.com/download/1.4/tarball/', 'local':"Django-1.4.tar.gz", 'install': {'method': 'pip', 'option_str': None, 'dict_extra_env': None}},
     'DJANGO-EXTENSIONS': { 'setup': 'django-extensions', 'url':'https://github.com/django-extensions/django-extensions/tarball/0.8', 'local':"django-extensions-0.8.tar.gz", 'install': {'method': 'pip', 'option_str': None, 'dict_extra_env': None}},
     'DJANGO-REGISTRATION': { 'setup': 'django-registration', 'url':'https://bitbucket.org/ubernostrum/django-registration/get/v0.8.tar.gz', 'local':"django-registration-0.8.tar.gz", 'install': {'method': 'easy_install', 'option_str': '-Z', 'dict_extra_env': None}},
Binary file virtualenv/res/src/distribute-0.6.14.tar.gz has changed
Binary file virtualenv/res/src/distribute-0.6.24.tar.gz has changed
--- a/virtualenv/web/res/res_create_env.py	Thu Jun 14 21:42:20 2012 +0200
+++ b/virtualenv/web/res/res_create_env.py	Thu Jun 14 22:32:13 2012 +0200
@@ -7,6 +7,7 @@
 
 INSTALLS = [ #(key,method, option_str, dict_extra_env)
     'PYLUCENE',
+    'LXML',
     'PSYCOPG2',
     'SOUTH',
     'PIL', 
@@ -23,12 +24,14 @@
     'SOCIAL_AUTH',
     'DJANGO_GUARDIAN',
     'SORL_THUMBNAIL',
-    'LXML',
 ]
 
 if system_str == 'Windows':
     INSTALLS.insert(0, 'JCC')
 
+if system_str == "Linux":
+    INSTALLS.insert(2, 'DISTRIBUTE')
+
 OPTIONS_TO_ADD = ['clear', 'type_install=local', 'unzip_setuptools']
 if system_str != 'Linux':
     OPTIONS_TO_ADD.append('use_distribute')