Skip to content
Discussion options

You must be logged in to vote

Use shared-scripts in [tool.hatch.build.targets.wheel]:

[tool.hatch.build.targets.wheel]
shared-scripts = { "scripts" = "/" }

Or for specific mappings:

[tool.hatch.build.targets.wheel.shared-scripts]
\"scripts/myscript.sh\" = "myscript.sh"

Scripts are installed to Scripts (Windows) or bin (Unix). Hatch also rewrites Python shebangs to #\!python for portability. See: https://hatch.pypa.io/latest/plugins/builder/wheel/#options

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmkacz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants