[Python-checkins] cpython: Issue #19734: venv still needs isolated mode

nick.coghlan python-checkins at python.org
Sun Nov 24 02:53:16 CET 2013


http://hg.python.org/cpython/rev/989de1a267b1
changeset:   87479:989de1a267b1
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Sun Nov 24 11:53:03 2013 +1000
summary:
  Issue #19734: venv still needs isolated mode

files:
  Lib/venv/__init__.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -237,7 +237,7 @@
         # 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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list