mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 04:10:19 +00:00
python3: add isFreeThreaded to the interpreter's passthru
A package that builds differently on free-threaded Python has no attribute to ask. It must parse libPrefix or executable for the "t" ABI flag. Expose the interpreter's own setting: true when CPython is built with enableGIL = false, and false for every other interpreter. The package set passes it on as an argument, like pythonAtLeast. passthru is not part of the derivation, so nothing rebuilds. Assisted-by: Claude Code (Claude Opus 5.5)
This commit is contained in:
@@ -217,6 +217,7 @@ let
|
||||
executable = "python${pythonVersion}${abiFlags}";
|
||||
sitePackages = "lib/${libPrefix}/site-packages";
|
||||
inherit hasDistutilsCxxPatch pythonAttr;
|
||||
isFreeThreaded = !enableGIL;
|
||||
inherit (splices)
|
||||
pythonOnBuildForBuild
|
||||
pythonOnBuildForHost
|
||||
|
||||
Reference in New Issue
Block a user