mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-121103: Put free-threaded libraries in lib/python3.14t
(#121293)
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.
This commit is contained in:
parent
5250a03133
commit
e8c91d90ba
13 changed files with 77 additions and 40 deletions
|
@ -40,6 +40,7 @@
|
|||
# EXE_SUFFIX -- [in, opt] '.exe' on Windows/Cygwin/similar
|
||||
# VERSION_MAJOR -- [in] sys.version_info.major
|
||||
# VERSION_MINOR -- [in] sys.version_info.minor
|
||||
# ABI_THREAD -- [in] either 't' for free-threaded builds or ''
|
||||
# PYWINVER -- [in] the Windows platform-specific version (e.g. 3.8-32)
|
||||
|
||||
# ** Values read from the environment **
|
||||
|
@ -172,17 +173,18 @@
|
|||
# ******************************************************************************
|
||||
|
||||
platlibdir = config.get('platlibdir') or PLATLIBDIR
|
||||
ABI_THREAD = ABI_THREAD or ''
|
||||
|
||||
if os_name == 'posix' or os_name == 'darwin':
|
||||
BUILDDIR_TXT = 'pybuilddir.txt'
|
||||
BUILD_LANDMARK = 'Modules/Setup.local'
|
||||
DEFAULT_PROGRAM_NAME = f'python{VERSION_MAJOR}'
|
||||
STDLIB_SUBDIR = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}'
|
||||
STDLIB_SUBDIR = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}'
|
||||
STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}/os.py', f'{STDLIB_SUBDIR}/os.pyc']
|
||||
PLATSTDLIB_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}/lib-dynload'
|
||||
PLATSTDLIB_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}/lib-dynload'
|
||||
BUILDSTDLIB_LANDMARKS = ['Lib/os.py']
|
||||
VENV_LANDMARK = 'pyvenv.cfg'
|
||||
ZIP_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}{VERSION_MINOR}.zip'
|
||||
ZIP_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}{VERSION_MINOR}{ABI_THREAD}.zip'
|
||||
DELIM = ':'
|
||||
SEP = '/'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue