virtualenv/web/res/res_create_env.py
changeset 2 b380dc74b590
parent 0 896db0083b76
child 10 9ea5f8ba8e71
equal deleted inserted replaced
1:95c490397619 2:b380dc74b590
       
     1 from lib_create_env import (lib_generate_install_methods, install_pylucene, 
       
     2     install_psycopg2, install_libyaml)
     1 import platform
     3 import platform
     2 
     4 
     3 from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2
       
     4 
     5 
     5 system_str = platform.system()
     6 system_str = platform.system()
     6 
     7 
     7 if system_str == 'Windows':
     8 if system_str == 'Windows':
     8     INSTALLS = [
     9     INSTALLS = [
     9     ('JCC','easy_install',None,None),
    10     ('JCC','easy_install',None,None),
    10     ('PSYCOPG2',install_psycopg2,None,None),
    11     ('PSYCOPG2',install_psycopg2,None,None),
    11     ('PYLUCENE','easy_install',None,None),
    12     ('PYLUCENE','easy_install',None,None),
       
    13     ('PYYAML','easy_install',None,None),
    12     ]
    14     ]
    13 else:
    15 else:
    14     INSTALLS = [
    16     INSTALLS = [
    15     ('PYLUCENE',install_pylucene,None,None),
    17     ('PYLUCENE',install_pylucene,None,None),
    16     ('PSYCOPG2', 'pip', None, None),
    18     ('PSYCOPG2', 'pip', None, None),
       
    19 #    ('LIBYAML', install_libyaml, None, None)
       
    20     ('PYYAML', 'pip', None, None),
    17     ]
    21     ]
    18 
    22 
    19 if system_str == 'Linux':
    23 if system_str == 'Linux':
    20     INSTALLS.extend([
    24     INSTALLS.extend([
    21     ('DISTRIBUTE', 'pip', None, None),
    25     ('DISTRIBUTE', 'pip', None, None),