hatch
hatch copied to clipboard
Can't run pre-install-commands in detached environment
I am trying to create a detached environment for CI where dependencies are pinned in a requirements file to make reproducible builds.
- So I need to avoid installing dependencies from package metadata by adding
detached = trueto corresponding env. - But for detached env, pre-install-commands are not called, so there seems to be no way to install deps from requirements file.
- I saw that there is a plugin to install dependencies from requirements but it can't be enabled by env and I don't want this behaviour for all my envs.
Is there a way to achieve it with hatch currently ?
there is no way currently but I plan to add the same command feature as options tied to creation rather than installation