]> granicus.if.org Git - python/commitdiff
Issue #19734: venv still needs isolated mode
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 24 Nov 2013 01:53:03 +0000 (11:53 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 24 Nov 2013 01:53:03 +0000 (11:53 +1000)
Lib/venv/__init__.py

index 74a8235fb3bcb085e15d18f8c8372593e161e71f..3b5f5fab81eed6b797cde6379951cebc62c86f92 100644 (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)