mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] python3: include ABI debug suffix d in executable (fixes FT+debug) (#528775)
This commit is contained in:
commit
912b6445d4
1 changed files with 3 additions and 2 deletions
|
|
@ -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}"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue