217 |
217 |
218 def normal_install(key, method, option_str, extra_env, res_source_key, home_dir, tmp_dir, res_env, logger, call_subprocess): |
218 def normal_install(key, method, option_str, extra_env, res_source_key, home_dir, tmp_dir, res_env, logger, call_subprocess): |
219 logger.notify("Install %s from %s with %s" % (key,res_env.URLS[key][res_source_key],method)) |
219 logger.notify("Install %s from %s with %s" % (key,res_env.URLS[key][res_source_key],method)) |
220 if method == 'pip': |
220 if method == 'pip': |
221 if sys.platform == 'win32': |
221 if sys.platform == 'win32': |
222 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]] |
222 args = [os.path.abspath(os.path.join(home_dir, 'Scripts', 'pip')), 'install', res_env.URLS[key][res_source_key]] |
223 else: |
223 else: |
224 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]] |
224 args = [os.path.abspath(os.path.join(home_dir, 'bin', 'pip')), 'install', res_env.URLS[key][res_source_key]] |
225 if option_str : |
225 if option_str : |
226 args.insert(4,option_str) |
226 args.insert(4,option_str) |
227 call_subprocess(args, |
227 call_subprocess(args, |
228 cwd=os.path.abspath(tmp_dir), |
228 cwd=os.path.abspath(tmp_dir), |
229 filter_stdout=filter_python_develop, |
229 filter_stdout=filter_python_develop, |