summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/cpython/platform-triplet-detection.patch
AgeCommit message (Collapse)Author
2023-10-13python311: fix cross to/from musl (#260641)Yureka
The situation: Python <3.11: under Linux the abi string is always -gnu* Python 3.11-3.12: musl is treated as its own abi in the python build system, but when cross-compiling the build host's libc is used for the target abi string. Cross compiling from glibc to musl gives a -gnu* target abi string and vice versa. Python >=3.13: musl is treated as its own abi, and when cross-compiling the target libc is used for the target abi string We backport the fix for python 3.11-3.12, since the intermediate state is almost impossible to model in the nix expression