diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-07-11 21:00:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 21:00:28 (GMT) |
commit | 35f7155bc39b8e5212b90a2ee96cb107b51e0e83 (patch) | |
tree | f29a5ec83ce96d65bc770ade3fad467ca3f6bbeb /Lib/test/test_venv.py | |
parent | c6dbfbbe3c24cf2dd6a589904383f28cd1a1f4db (diff) | |
download | cpython-35f7155bc39b8e5212b90a2ee96cb107b51e0e83.zip cpython-35f7155bc39b8e5212b90a2ee96cb107b51e0e83.tar.gz cpython-35f7155bc39b8e5212b90a2ee96cb107b51e0e83.tar.bz2 |
[3.13] gh-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (#121631)
On POSIX systems, excluding macOS framework installs, the lib directory
for the free-threaded build now includes a "t" suffix to avoid conflicts
with a co-located default build installation.
(cherry picked from commit e8c91d90ba8fab410a27fad4f709cc73f6ffcbf4)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 1769ed6..2b7d297 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -75,7 +75,7 @@ class BaseTest(unittest.TestCase): self.include = 'Include' else: self.bindir = 'bin' - self.lib = ('lib', 'python%d.%d' % sys.version_info[:2]) + self.lib = ('lib', f'python{sysconfig._get_python_version_abi()}') self.include = 'include' executable = sys._base_executable self.exe = os.path.split(executable)[-1] @@ -593,7 +593,8 @@ class BasicTest(BaseTest): libdir = os.path.join(non_installed_dir, platlibdir, self.lib[1]) os.makedirs(libdir) landmark = os.path.join(libdir, "os.py") - stdlib_zip = "python%d%d.zip" % sys.version_info[:2] + abi_thread = "t" if sysconfig.get_config_var("Py_GIL_DISABLED") else "" + stdlib_zip = f"python{sys.version_info.major}{sys.version_info.minor}{abi_thread}" zip_landmark = os.path.join(non_installed_dir, platlibdir, stdlib_zip) |