Only run build hook once #964
-
Hi! My repo looks something like this:
I defined a build script in [tool.hatch.build.hooks.custom]
path = "config/copy_frontend.py" Running
How can I fix this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You need to do two things:
|
Beta Was this translation helpful? Give feedback.
-
This was helpful and I believe my build is now correct, but perhaps someone could verify it... There doesn't seem to be almost any documentation or examples on custom builds... Using |
Beta Was this translation helpful? Give feedback.
You need to do two things:
[tool.hatch.build.hooks.custom]
to[tool.hatch.build.targets.wheel.hooks.custom]