]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39656: Ensure `bin/python3.#` is always present in virtual environments on POSIX...
authorAnthony Sottile <asottile@umich.edu>
Tue, 17 Mar 2020 07:29:11 +0000 (00:29 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 07:29:11 +0000 (07:29 +0000)
Lib/venv/__init__.py
Misc/NEWS.d/next/Library/2020-03-16-11-38-45.bpo-39656.MaNOgm.rst [new file with mode: 0644]

index a220ef784c13443af83da4a4c6a4b30e1e4007bc..8009deb3ea700341bb65e1a84a7838bd80dad852 100644 (file)
@@ -243,7 +243,7 @@ class EnvBuilder:
             copier(context.executable, path)
             if not os.path.islink(path):
                 os.chmod(path, 0o755)
-            for suffix in ('python', 'python3'):
+            for suffix in ('python', 'python3', f'python3.{sys.version_info[1]}'):
                 path = os.path.join(binpath, suffix)
                 if not os.path.exists(path):
                     # Issue 18807: make copies if
diff --git a/Misc/NEWS.d/next/Library/2020-03-16-11-38-45.bpo-39656.MaNOgm.rst b/Misc/NEWS.d/next/Library/2020-03-16-11-38-45.bpo-39656.MaNOgm.rst
new file mode 100644 (file)
index 0000000..937d162
--- /dev/null
@@ -0,0 +1,2 @@
+Ensure ``bin/python3.#`` is always present in virtual environments on POSIX
+platforms - by Anthony Sottile.