Skip to content

Build fails with recent versions of hatch : Unknown build hook: build-scripts #1694

@jhgoebbert

Description

@jhgoebbert

Building bqplot with hatch>=1.16.0 fails with

        File "../lib/python3.13/site-packages/hatchling/builders/plugin/interface.py", line 386, in get_build_hooks
          raise UnknownPluginError(message)
      hatchling.plugin.exceptions.UnknownPluginError: Unknown build hook: build-scripts

I suppose this is related to the fact that:

Environment type plugins are now no longer expected to support a pseudo-build environment as any environment now may be used for building. The following methods have been removed: build_environment, build_environment_exists, run_builder, construct_build_command

Build environments can now be configured, the default build environment is hatch-build

as others stumbled over this, too: jupyterlab/hatch-jupyter-builder#146 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions