scikit-build-core
scikit-build-core copied to clipboard
Handling microarchitecture subversions
An example of a project that would benefit from this is rapidfuzz which can be optimized for different x86_64-vX versions ^1. Fedora is also investigating how to provide multiple versions of the architecture ^2. I am not sure how to extend these to Python ecosystem though.
Afaiu, using glibc_hwcaps you can provide multiple variants of the library in a subpath like glibc-hwcaps/x86-64-v{2,3,4}/ and it would be automagically loaded. Not sure what the process is to get the libraries ready for it though, still need to investigate that. But then for compiled python modules it is more complicated because it would be the python library that determines which library file to load right?