idf_tools.py: fix install-python-env failure with virtualenv 20.0.0
--no-site-packages is the default behavior since virtualenv 1.7 (released in Nov 2011). This option was removed in virtualenv 20.0.
This commit is contained in:
parent
c5d05b5c4f
commit
7a18f02acd
1 changed files with 1 additions and 1 deletions
|
@ -1199,7 +1199,7 @@ def action_install_python_env(args):
|
||||||
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'virtualenv'],
|
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'virtualenv'],
|
||||||
stdout=sys.stdout, stderr=sys.stderr)
|
stdout=sys.stdout, stderr=sys.stderr)
|
||||||
|
|
||||||
subprocess.check_call([sys.executable, '-m', 'virtualenv', '--no-site-packages', idf_python_env_path],
|
subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
|
||||||
stdout=sys.stdout, stderr=sys.stderr)
|
stdout=sys.stdout, stderr=sys.stderr)
|
||||||
run_args = [virtualenv_python, '-m', 'pip', 'install', '--no-warn-script-location']
|
run_args = [virtualenv_python, '-m', 'pip', 'install', '--no-warn-script-location']
|
||||||
requirements_txt = os.path.join(global_idf_path, 'requirements.txt')
|
requirements_txt = os.path.join(global_idf_path, 'requirements.txt')
|
||||||
|
|
Loading…
Reference in a new issue