virtualenv/setup/res/res_create_env.py
changeset 671 fc56b4c9e4f3
parent 668 b52724db32ab
child 744 960e4d8d8acd
equal deleted inserted replaced
670:5e2f25f59429 671:fc56b4c9e4f3
     1 import platform
     1 import platform
     2 
     2 
     3 from lib_create_env import lib_generate_install_methods, install_pylucene, install_psycopg2, lib_add_options
     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 
     7 
     8 INSTALLS = [#(key,method, option_str, dict_extra_env)
     8 INSTALLS = [#(key,method, option_str, dict_extra_env)
     9 ]
     9 ]
    10 
    10 
    11 OPTIONS_TO_ADD = ['--no-site-packages','--clear', '--type-install=local', "--unzip-setuptools"]
    11 OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip-setuptools", "use_distribute"]
    12 
    12 
    13 def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
    13 def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
    14     return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS)
    14     return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)
    15 
    15 
    16 add_options = lambda : lib_add_options(OPTIONS_TO_ADD)