-
My
it looks like when I run More generally, how to do packaging/installation where the customer does not have to run I would like something which fetches the submodule source code and then add it to the package... Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It works with environments because it's a feature of Hatch only. How are you distributing your code to customers? Also, the |
Beta Was this translation helpful? Give feedback.
When you do
pip install .
that builds a wheel using the chosen backend and then essentially doespip install path/to/wheel
(same goes forpip install -e .
which builds a special wheel).With Hatch, the default behavior for environments is to basically run that command but with extra features. One such feature is the ability to run some commands before or after that step. If you just have some code you want to run rather than shipping something to users it's better to just define dependencies and put some directories on PYTHONPATH using the option I showed you. You can still structure your code like a project that would be distributed if you want to in which case the directory to where you…