mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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 e8c91d90ba)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
c6dbfbbe3c
commit
35f7155bc3
13 changed files with 77 additions and 40 deletions
|
|
@ -75,7 +75,7 @@ def setUp(self):
|
|||
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 @@ def test_zippath_from_non_installed_posix(self):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue