-
|
re: https://medium.com/@azinke.learn/packaging-shell-scripts-9309e200c818 Is there a way to package shell (bash) scripts in the build artifact, like there was with setuptools? Ex. |
Beta Was this translation helpful? Give feedback.
Answered by
anntnzrb
Dec 4, 2025
Replies: 1 comment
-
|
Use [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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmkacz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
shared-scriptsin[tool.hatch.build.targets.wheel]:Or for specific mappings:
Scripts are installed to
Scripts(Windows) orbin(Unix). Hatch also rewrites Python shebangs to#\!pythonfor portability. See: https://hatch.pypa.io/latest/plugins/builder/wheel/#options