virtualenv/res/lib/lib_create_env.py
changeset 141 444108d080bc
parent 134 75f8f05f9a60
child 176 ec356aa158a1
equal deleted inserted replaced
140:a1515a16727a 141:444108d080bc
   275     
   275     
   276     def normal_install(key, method, option_str, extra_env, res_source_key, home_dir, tmp_dir, res_env, logger, call_subprocess):
   276     def normal_install(key, method, option_str, extra_env, res_source_key, home_dir, tmp_dir, res_env, logger, call_subprocess):
   277         logger.notify("Install %s from %s with %s" % (key,res_env.URLS[key][res_source_key],method))
   277         logger.notify("Install %s from %s with %s" % (key,res_env.URLS[key][res_source_key],method))
   278         if method == 'pip':
   278         if method == 'pip':
   279             if sys.platform == 'win32':
   279             if sys.platform == 'win32':
   280                 args = [os.path.abspath(os.path.join(home_dir, 'Scripts', 'pip')), 'install', '-E', os.path.abspath(home_dir), res_env.URLS[key][res_source_key]]
   280                 args = [os.path.abspath(os.path.join(home_dir, 'Scripts', 'pip')), 'install', res_env.URLS[key][res_source_key]]
   281             else:
   281             else:
   282                 args = [os.path.abspath(os.path.join(home_dir, 'bin', 'pip')), 'install', '-E', os.path.abspath(home_dir), res_env.URLS[key][res_source_key]]
   282                 args = [os.path.abspath(os.path.join(home_dir, 'bin', 'pip')), 'install', res_env.URLS[key][res_source_key]]
   283             if option_str :
   283             if option_str :
   284                 args.insert(4,option_str)
   284                 args.insert(4,option_str)
   285             call_subprocess(args,
   285             call_subprocess(args,
   286                     cwd=os.path.abspath(tmp_dir),
   286                     cwd=os.path.abspath(tmp_dir),
   287                     filter_stdout=filter_python_develop,
   287                     filter_stdout=filter_python_develop,