virtualenv/web/res/res_create_env.py
changeset 0 896db0083b76
child 2 b380dc74b590
equal deleted inserted replaced
-1:000000000000 0:896db0083b76
       
     1 import platform
       
     2 
       
     3 from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
       
     4 
       
     5 system_str = platform.system()
       
     6 
       
     7 if system_str == 'Windows':
       
     8     INSTALLS = [
       
     9     ('JCC','easy_install',None,None),
       
    10     ('PSYCOPG2',install_psycopg2,None,None),
       
    11     ('PYLUCENE','easy_install',None,None),
       
    12     ]
       
    13 else:
       
    14     INSTALLS = [
       
    15     ('PYLUCENE',install_pylucene,None,None),
       
    16     ('PSYCOPG2', 'pip', None, None),
       
    17     ]
       
    18 
       
    19 if system_str == 'Linux':
       
    20     INSTALLS.extend([
       
    21     ('DISTRIBUTE', 'pip', None, None),
       
    22     ])
       
    23 
       
    24 INSTALLS.extend([ #(key,method, option_str, dict_extra_env)
       
    25     ('PIL', 'easy_install', None, None), 
       
    26     ('DJANGO','pip', None, None),
       
    27     ('DJANGO-EXTENSIONS', 'pip', None, None),
       
    28     ('HTTPLIB2', 'pip', None, None),
       
    29     ('SOUTH', 'pip', None, None),
       
    30     ('WHOOSH', 'pip', None, None),
       
    31     ('HAYSTACK', 'pip', None, None),
       
    32 ])
       
    33 
       
    34 if system_str == "Darwin":
       
    35     INSTALLS.extend([
       
    36     ('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}),
       
    37     ])
       
    38 else:
       
    39     INSTALLS.extend([
       
    40     ('LXML', 'easy_install', None, None),
       
    41     ])
       
    42 
       
    43 
       
    44 def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
       
    45     return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS)