Skip to content

CustomBuildHook executes twice #2015

@Chasarr

Description

@Chasarr

Hi!

Running hatch build essentially seems to run two commands behind the scenes - hatch build -t sdist and hatch build -t wheel. Let's say my build system requires building binaries before building and uploading the package. The current system would mean that uv build would perform this time-consuming compilation twice.

Is there any way of making hatch only run this once?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions