Issue #19734: venv still needs isolated mode

This commit is contained in:
Nick Coghlan 2013-11-24 11:53:03 +10:00
parent 6fd12f2b33
commit 1631b9b4b5

View file

@ -237,7 +237,7 @@ class EnvBuilder:
# We run ensurepip in isolated mode to avoid side effects from
# environment vars, the current directory and anything else
# intended for the global Python environment
cmd = [context.env_exe, '-m', 'ensurepip', '--upgrade',
cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade',
'--default-pip']
subprocess.check_output(cmd, stderr=subprocess.STDOUT)