server/virtualenv/web/res/res_create_env.py
changeset 1 e0dbcf98c13e
child 28 41087fe3db69
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/virtualenv/web/res/res_create_env.py	Tue Feb 14 18:38:48 2012 +0100
@@ -0,0 +1,36 @@
+import platform
+
+from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
+
+system_str = platform.system()
+
+if system_str == 'Windows':
+    INSTALLS = [
+    ('PSYCOPG2',install_psycopg2,None,None),
+    ]
+else:
+    INSTALLS = [
+    ('PSYCOPG2', 'pip', None, None),
+    ]
+
+if system_str == 'Linux':
+    INSTALLS.extend([
+    ('DISTRIBUTE', 'pip', None, None),
+    ])
+
+INSTALLS.extend([ #(key,method, option_str, dict_extra_env)
+    ('SQLALCHEMY', 'pip', None, None),
+    ('WERKZEUG', 'pip', None, None),
+    ('JINJA2', 'pip', None, None),
+    ('FLASK', 'pip', None, None),
+    ('FLASK-CACHE', 'pip', None, None),
+    ('FLASK-SQLALCHEMY', 'pip', None, None),
+    ('SIMPLEJSON', 'pip', None, None),
+    ('ANYJSON', 'pip', None, None),
+    ('PYTZ', 'pip', None, None),
+    ('RFC3339', '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)