virtualenv/web/res/res_create_env.py
changeset 84 d7acd4e2c1c8
parent 72 47e0f0eef1cc
child 86 c87350ebcddb
equal deleted inserted replaced
83:3b0882c91a7d 84:d7acd4e2c1c8
     2 
     2 
     3 from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
     3 from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
     4 
     4 
     5 system_str = platform.system()
     5 system_str = platform.system()
     6 
     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     ]
     7 
    18 
     8 if system_str == 'Linux':
    19 if system_str == 'Linux':
     9     INSTALLS = [
    20     INSTALLS.extend([
    10     ('DISTRIBUTE', 'pip', None, None),
    21     ('DISTRIBUTE', 'pip', None, None),
    11     ]
    22     ])
    12 else:
       
    13     INSTALLS = []
       
    14     
       
    15 
    23 
    16 INSTALLS.extend([ #(key,method, option_str, dict_extra_env)
    24 INSTALLS.extend([ #(key,method, option_str, dict_extra_env)
    17     ('SETUPTOOLS-HG', 'pip', None, None), 
    25     ('SETUPTOOLS-HG', 'pip', None, None), 
    18     ('MYSQL', 'pip', None, None),
    26     ('MYSQL', 'pip', None, None),
    19     ('PIL', 'easy_install', None, None), 
    27     ('PIL', 'easy_install', None, None), 
    30     ('SOCIAL_AUTH', 'easy_install', None, None),
    38     ('SOCIAL_AUTH', 'easy_install', None, None),
    31     ('PHOTOLOGUE', 'pip', None, None),
    39     ('PHOTOLOGUE', 'pip', None, None),
    32     ('MODELTRANSLATION', 'pip', None, None),
    40     ('MODELTRANSLATION', 'pip', None, None),
    33 ])
    41 ])
    34 
    42 
    35 if system_str == 'Windows':
       
    36     INSTALLS.extend([
       
    37     ('JCC','easy_install',None,None),
       
    38     ('PSYCOPG2',install_psycopg2,None,None),
       
    39     ('PYLUCENE','easy_install',None,None),
       
    40     ])
       
    41 else:
       
    42     INSTALLS.extend([
       
    43     ('PYLUCENE',install_pylucene,None,None),
       
    44     ('PSYCOPG2', 'pip', None, None),
       
    45     ])
       
    46 
       
    47 if system_str == "Darwin":
    43 if system_str == "Darwin":
    48     INSTALLS.extend([
    44     INSTALLS.extend([
    49     ('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}),
    45     ('LXML', 'easy_install', None, {'STATIC_DEPS': 'true', 'LIBXML2_VERSION': '2.7.8', 'LIBXSLT_VERSION': '1.1.26', 'LIBICONV_VERSION': '1.13.1'}),
    50     ])
    46     ])
    51 elif system_str == "Windows":
    47 elif system_str == "Windows":