scikit-build-core
scikit-build-core copied to clipboard
Option to import `pyi` stubs as modules
The usecase for this is when we are building the documentation and using autodoc to avoid import failures and avoid cmake building. The user could have something like this setup
[[tool.scikit-build.overrides]]
if.any.env.READTHEDOCS = true
if.any.env.BUILD_DOCS = true
wheel.cmake = false
The logic to be added is that if there is a .pyi stub file without a .py original, then:
- regular: copy the stub file to a
.pyfile - edittable installs: probably
ScikitBuildRedirectingFinderneeds to be changed to detect.pyifiles as modules