Skip to content

Introduce an enviroment variable to inform about on-import (editable) rebuilds #1155

@pparuzel

Description

@pparuzel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions