virtualenv/res/lib/lib_create_env.py
changeset 674 343b002e5626
parent 660 04255afd160e
child 686 385e3a12ee27
equal deleted inserted replaced
673:51724e5b2bd9 674:343b002e5626
   281             if option_str :
   281             if option_str :
   282                 args.append(option_str)
   282                 args.append(option_str)
   283             if res_source_key == 'local':
   283             if res_source_key == 'local':
   284                 if extra_env is None:
   284                 if extra_env is None:
   285                     extra_env = {}
   285                     extra_env = {}
   286                 extra_env["PIP_DOWNLOAD_CACHE"] = res_env.get_src_base_path("")
       
   287                 args.insert(2, '-f')
   286                 args.insert(2, '-f')
   288                 args.insert(3, res_env.get_src_base_path(""))
   287                 args.insert(3, res_env.get_src_base_path(""))
   289                 args.insert(4, '--no-index')
   288                 args.insert(4, '--no-index')
       
   289                 args.insert(5, '--no-cache-dir')
   290             logger.notify("Install %s from %s with %s args %s " % (key,res_path,method, repr(args)))
   290             logger.notify("Install %s from %s with %s args %s " % (key,res_path,method, repr(args)))
   291             call_subprocess(args,
   291             call_subprocess(args,
   292                     cwd=os.path.abspath(tmp_dir),
   292                     cwd=os.path.abspath(tmp_dir),
   293                     filter_stdout=filter_python_develop,
   293                     filter_stdout=filter_python_develop,
   294                     show_stdout=True,
   294                     show_stdout=True,
   301             if option_str :
   301             if option_str :
   302                 args.append(option_str)
   302                 args.append(option_str)
   303             if res_source_key == 'local':
   303             if res_source_key == 'local':
   304                 if extra_env is None:
   304                 if extra_env is None:
   305                     extra_env = {}
   305                     extra_env = {}
   306                 extra_env["PIP_DOWNLOAD_CACHE"] = res_env.get_src_base_path("")
       
   307                 args.insert(2, '-f')
   306                 args.insert(2, '-f')
   308                 args.insert(3, res_env.get_src_base_path(""))
   307                 args.insert(3, res_env.get_src_base_path(""))
   309                 args.insert(4, '--no-index')
   308                 args.insert(4, '--no-index')
       
   309                 args.insert(5, '--no-cache-dir')
   310             logger.notify("Install %s from %s with %s args %s " % (key,res_path,method, repr(args)))
   310             logger.notify("Install %s from %s with %s args %s " % (key,res_path,method, repr(args)))
   311             call_subprocess(args,
   311             call_subprocess(args,
   312                     cwd=os.path.abspath(tmp_dir),
   312                     cwd=os.path.abspath(tmp_dir),
   313                     filter_stdout=filter_python_develop,
   313                     filter_stdout=filter_python_develop,
   314                     show_stdout=True,
   314                     show_stdout=True,