It would be useful to be able to distinguish between regular rebuilding state and a rebuild triggered by an import. On-import rebuilds from editable.rebuild = true
may be desired to skip some unnecessary longer steps (e.g., avoiding stub generation etc.) that a regular cmake --build build
would take.
Proposal:
Introduce SKBUILD_IMPORT_REBUILD=1
during on-import rebuilds, if possible, or some other mechanism allowing to distinguish between these states.