virtualenv/web/res/res_create_env.py
changeset 68 b40657713336
child 70 8e3281bcebc9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/virtualenv/web/res/res_create_env.py	Fri Apr 08 17:18:44 2011 +0200
@@ -0,0 +1,56 @@
+import platform
+
+from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
+
+system_str = platform.system()
+
+
+if system_str == 'Linux':
+    INSTALLS = [
+    ('DISTRIBUTE', 'pip', None, None),
+    ]
+else:
+    INSTALLS = []
+    
+
+INSTALLS.extend([ #(key,method, option_str, dict_extra_env)
+    ('SETUPTOOLS-HG', 'pip', None, None), 
+    ('MYSQL', 'pip', None, None),
+    ('PIL', 'easy_install', None, None), 
+    ('DJANGO','pip', None, None),
+    ('JOGGING','pip', None, None),
+    ('DJANGO-EXTENSIONS', 'pip', None, None),
+    ('DJANGO-REGISTRATION', 'easy_install', '-Z', None),
+    ('DJANGO-TAGGING', 'pip', None, None),
+    ('DJANGO-PISTON', 'pip', None, None),
+    ('HTTPLIB2', 'pip', None, None),
+    ('OAUTH2', 'easy_install', None, None),
+    ('DJANGO-OAUTH-PLUS', 'pip', None, None),
+    ('PHOTOLOGUE', 'pip', None, None),
+    ('MODELTRANSLATION', 'pip', None, None),
+])
+
+if system_str == 'Windows':
+    INSTALLS.extend([
+    ('JCC','easy_install',None,None),
+    ('PYLUCENE','easy_install',None,None),
+    ('PSYCOPG2',install_psycopg2,None,None),
+    ])
+else:
+    INSTALLS.extend([
+    ('PYLUCENE',install_pylucene,None,None),
+    ('PSYCOPG2', 'pip', None, None),
+    ])
+
+if system_str == "Darwin":
+    INSTALLS.extend([
+    ('LXML', 'pip', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26'}),
+    ])
+else:
+    INSTALLS.extend([
+    ('LXML', 'pip', None, None),
+    ])
+
+
+def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
+    return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS)