diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2024-10-06 18:47:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 18:47:13 (GMT) |
commit | 3fc673e97dafb8a73ee99937cf2bf0b849b1f418 (patch) | |
tree | e2629c6b7dfdcd0ca9be2aa50191dc9d6574c104 /Lib | |
parent | db23b8bb13863fcd88ff91bc22398f8e0312039e (diff) | |
download | cpython-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__.py | 7 |
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 |