8000 bpo-39656: Ensure `bin/python3.#` is always present in virtual enviro… · python/cpython@58ec58a · GitHub
[go: up one dir, main page]

Skip to content

Commit 58ec58a

Browse files
authored
bpo-39656: Ensure bin/python3.# is always present in virtual environments on POSIX (GH-19030)
1 parent 2037502 commit 58ec58a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/venv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def setup_python(self, context):
243243
copier(context.executable, path)
244244
if not os.path.islink(path):
245245
os.chmod(path, 0o755)
246-
for suffix in ('python', 'python3'):
246+
for suffix in ('python', 'python3', f'python3.{sys.version_info[1]}'):
247247
path = os.path.join(binpath, suffix)
248248
if not os.path.exists(path):
249249
# Issue 18807: make copies if
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Ensure ``bin/python3.#`` is always present in virtual environments on POSIX
2+
platforms - by Anthony Sottile.

0 commit comments

Comments
 (0)
0