]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119535: python𝜋 (#119536)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Sun, 6 Oct 2024 18:47:13 +0000 (11:47 -0700)
committerGitHub <noreply@github.com>
Sun, 6 Oct 2024 18:47:13 +0000 (21:47 +0300)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/venv/__init__.py

index 028e94831966941228ab7d10145f03aec72480e1..a5cb2bdb06469285c909c1103a73af2b11f950f4 100644 (file)
@@ -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