pythonInterpreters: Add passthru.pythonABITags (#445140)

This commit is contained in:
Martin Weinelt
2025-10-05 01:17:18 +00:00
committed by GitHub
6 changed files with 27 additions and 0 deletions
@@ -87,6 +87,10 @@ let
pythonOnBuildForTarget = pkgsBuildTarget.${pythonAttr};
pythonOnHostForHost = pkgsHostHost.${pythonAttr};
pythonOnTargetForTarget = pkgsTargetTarget.${pythonAttr} or { };
pythonABITags = [
"none"
"cp${sourceVersion.major}${sourceVersion.minor}"
];
}
// {
inherit ucsEncoding;
@@ -195,6 +195,12 @@ let
pythonOnHostForHost
pythonOnTargetForTarget
;
pythonABITags = [
"abi3"
"none"
"cp${sourceVersion.major}${sourceVersion.minor}${lib.optionalString (!enableGIL) "t"}"
];
};
version = with sourceVersion; "${major}.${minor}.${patch}${suffix}";