scikit-build-core
scikit-build-core copied to clipboard
About `madebr/python-cmake-file-api`
I got informed about another project that is implementing cmake file-api for python: madebr/python-cmake-file-api. What do you think @henryiii?
I think our implementation is much cleaner! See https://github.com/scikit-build/scikit-build-core/blob/main/src/scikit_build_core/file_api/model/codemodel.py for example, compared to https://github.com/madebr/python-cmake-file-api/blob/master/cmake_file_api/kinds/codemodel/v2.py
Indeed it looks much cleaner. But then what would be the plans to share this outside of the sk-build-core? It would be unintuitive for the user to import a build tool to access cmake file api. Otherwise, the only thing that would missing is to make the api be stateful.
user to import a build tool to access cmake file api
Given you have to trigger a config run to get the file API, I don't think it's that unreasonable to have it inside a build tool. Biggest issues currently are not many tests and no documentation.
I think stateful queries would be pretty trivial to add.