[Backport release-26.05] python3: include ABI debug suffix d in executable (fixes FT+debug) (#528775)

This commit is contained in:
Martin Weinelt 2026-06-06 12:22:15 +00:00 committed by GitHub
commit 912b6445d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,6 +202,7 @@ let
in
python;
pythonVersion = with sourceVersion; "${major}.${minor}";
abiFlags = lib.optionalString (!enableGIL) "t" + lib.optionalString enableDebug "d";
libPrefix = "python${pythonVersion}${lib.optionalString (!enableGIL) "t"}";
in
passthruFun {
@ -213,7 +214,7 @@ let
pythonVersion
;
implementation = "cpython";
executable = libPrefix;
executable = "python${pythonVersion}${abiFlags}";
sitePackages = "lib/${libPrefix}/site-packages";
inherit hasDistutilsCxxPatch pythonAttr;
inherit (splices)
@ -227,7 +228,7 @@ let
pythonABITags = [
"abi3"
"none"
"cp${sourceVersion.major}${sourceVersion.minor}${lib.optionalString (!enableGIL) "t"}"
"cp${sourceVersion.major}${sourceVersion.minor}${abiFlags}"
];
};