bpo-39656: Ensure `bin/python3.#` is always present in virtual environments on POSIX (GH-19030)

This commit is contained in:
Anthony Sottile 2020-03-17 00:29:11 -07:00 committed by GitHub
parent 2037502613
commit 58ec58a42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -0,0 +1,2 @@
Ensure ``bin/python3.#`` is always present in virtual environments on POSIX
platforms - by Anthony Sottile.