scikit-build-core
scikit-build-core copied to clipboard
Create a `FindScikitBuildCore.cmake` module
There could be some additional checks and settings that would work better running within CMake, e.g. checking try_compile of python bindings. What can or should include in such a module:
- check that
scikit-build-coreis included in the python environment - expose Components to control additional integrations
-
try_compileto make sure python devel package is present and ABI compatible with the compiler - migrate most cache values definitions to there
- expose functions to create and install python metadata files, python native files, etc.
- reconfigure
GnuInstallDirpaths to be wheel install compatible. Primarily thinking aboutCMAKE_INSTALL_BINDIR
Most of these should be gated by the components requested and maybe pip install can auto-inject some components depending on the configuration.