summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-11 21:00:28 (GMT)
committerGitHub <noreply@github.com>2024-07-11 21:00:28 (GMT)
commit35f7155bc39b8e5212b90a2ee96cb107b51e0e83 (patch)
treef29a5ec83ce96d65bc770ade3fad467ca3f6bbeb /Modules/getpath.c
parentc6dbfbbe3c24cf2dd6a589904383f28cd1a1f4db (diff)
downloadcpython-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 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index abed139..d0128b2 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -951,6 +951,11 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
!wchar_to_dict(dict, "executable_dir", NULL) ||
!wchar_to_dict(dict, "py_setpath", _PyPathConfig_GetGlobalModuleSearchPath()) ||
!funcs_to_dict(dict, config->pathconfig_warnings) ||
+#ifdef Py_GIL_DISABLED
+ !decode_to_dict(dict, "ABI_THREAD", "t") ||
+#else
+ !decode_to_dict(dict, "ABI_THREAD", "") ||
+#endif
#ifndef MS_WINDOWS
PyDict_SetItemString(dict, "winreg", Py_None) < 0 ||
#endif