virtualenv/res/lib/lib_create_env.py
changeset 50 2123324cca5a
parent 13 495b3534a976
child 52 509085ffbce6
equal deleted inserted replaced
49:32f0a519cc7a 50:2123324cca5a
   317                 if install_options is None:
   317                 if install_options is None:
   318                     install_options = default_install_options
   318                     install_options = default_install_options
   319                 method = install_options.get('method', default_install_options['method'])
   319                 method = install_options.get('method', default_install_options['method'])
   320                 option_str = install_options.get('option_str', default_install_options['option_str'])
   320                 option_str = install_options.get('option_str', default_install_options['option_str'])
   321                 extra_env = install_options.get('dict_extra_env', default_install_options['dict_extra_env'])
   321                 extra_env = install_options.get('dict_extra_env', default_install_options['dict_extra_env'])
       
   322                 if 'TMPDIR' not in extra_env:
       
   323                     extra_env['TMPDIR'] = tmp_dir          
   322                 #isinstance(lst, (list, tuple))
   324                 #isinstance(lst, (list, tuple))
   323                 if key not in ignore_packages:
   325                 if key not in ignore_packages:
   324                     if callable(method):
   326                     if callable(method):
   325                         method(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop)
   327                         method(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop)
   326                     elif method in globals() and callable(globals()[method]) and method not in ['pip', 'easy_install']:  
   328                     elif method in globals() and callable(globals()[method]) and method not in ['pip', 'easy_install']: