From: Nick Coghlan Date: Sun, 24 Nov 2013 01:53:03 +0000 (+1000) Subject: Issue #19734: venv still needs isolated mode X-Git-Tag: v3.4.0b1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1631b9b4b56323a0a85f1df6239058f6d2a40a13;p=python Issue #19734: venv still needs isolated mode --- diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 74a8235fb3..3b5f5fab81 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -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)