gh-119535: python𝜋 (#119536)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
Shantanu 2024-10-06 11:47:13 -07:00 committed by GitHub
parent db23b8bb13
commit 3fc673e97d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View 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