Skip to content

Install git submodules #1585

Answered by ofek
ReHoss asked this question in Q&A
Jun 23, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

When you do pip install . that builds a wheel using the chosen backend and then essentially does pip install path/to/wheel (same goes for pip 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…

Replies: 1 comment 6 replies

Comment options

ofek
Jun 23, 2024
Maintainer Sponsor

You must be logged in to vote
6 replies
@ReHoss
Comment options

@ofek
Comment options

ofek Jun 23, 2024
Maintainer Sponsor

@ReHoss
Comment options

@ofek
Comment options

ofek Jun 23, 2024
Maintainer Sponsor

Answer selected by ReHoss
@ReHoss
Comment options

@ReHoss
Comment options

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