virtualenv/setup/res/res_create_env.py
changeset 668 b52724db32ab
parent 615 006f1e3e5398
child 671 fc56b4c9e4f3
equal deleted inserted replaced
667:9e64be35704f 668:b52724db32ab
     1 import platform
     1 import platform
     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, lib_add_options
     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     ('DISTRIBUTE', 'pip', None, None),
       
    10 ]
     9 ]
       
    10 
       
    11 OPTIONS_TO_ADD = ['--no-site-packages','--clear', '--type-install=local', "--unzip-setuptools"]
    11 
    12 
    12 def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
    13 def generate_install_methods(path_locations, src_base, Logger, call_subprocess):    
    13     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)
       
    15 
       
    16 add_options = lambda : lib_add_options(OPTIONS_TO_ADD)