summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>2024-10-06 18:47:13 (GMT)
committerGitHub <noreply@github.com>2024-10-06 18:47:13 (GMT)
commit3fc673e97dafb8a73ee99937cf2bf0b849b1f418 (patch)
treee2629c6b7dfdcd0ca9be2aa50191dc9d6574c104 /Lib
parentdb23b8bb13863fcd88ff91bc22398f8e0312039e (diff)
downloadcpython-3fc673e97dafb8a73ee99937cf2bf0b849b1f418.zip
cpython-3fc673e97dafb8a73ee99937cf2bf0b849b1f418.tar.gz
cpython-3fc673e97dafb8a73ee99937cf2bf0b849b1f418.tar.bz2
gh-119535: python𝜋 (#119536)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/venv/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 028e948..a5cb2bd 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -303,8 +303,11 @@ class EnvBuilder:
copier(context.executable, path)
if not os.path.islink(path):
os.chmod(path, 0o755)
- for suffix in ('python', 'python3',
- f'python3.{sys.version_info[1]}'):
+
+ suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}']
+ if sys.version_info[:2] == (3, 14):
+ suffixes.append('python𝜋')
+ for suffix in suffixes:
path = os.path.join(binpath, suffix)
if not os.path.exists(path):
# Issue 18807: make copies if