[3.14] gh-134060: Don't create a certain symlink in venv if platform does not support it (GH-134061)

This commit is contained in:
Stan Ulbrych 2025-05-18 20:33:14 +01:00 committed by GitHub
parent 70735878ab
commit 91d71ac1bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,7 +315,7 @@ class EnvBuilder:
os.chmod(path, 0o755)
suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}']
if sys.version_info[:2] == (3, 14):
if sys.version_info[:2] == (3, 14) and sys.getfilesystemencoding() == 'utf-8':
suffixes.append('𝜋thon')
for suffix in suffixes:
path = os.path.join(binpath, suffix)