Install custom_models in conda envs from git (pinned ref) instead of relative path
Snakemake copies env yamls into .snakemake/conda/, where the old '../custom_models' relative pip path no longer resolves and breaks env creation. Pin the ssh git URL to the currently packaged submodule commit; bump the ref together with future submodule updates.
This commit is contained in:
@@ -10,8 +10,9 @@ dependencies:
|
||||
- pytest>=8
|
||||
- pip:
|
||||
- pod5
|
||||
# E1 genus probe package, checked out as the `custom_models` submodule
|
||||
# in the repo root (torch comes from conda here and satisfies the
|
||||
# requirement, so only this package gets installed).
|
||||
# Relative path assumes snakemake is invoked from `workflow/`.
|
||||
- ../custom_models
|
||||
# E1 genus probe package, git-installed (pinned to the packaged
|
||||
# submodule commit) rather than a relative-path install: snakemake
|
||||
# copies env yamls into .snakemake/conda/, where relative paths
|
||||
# break. Bump the ref together with the `custom_models` submodule
|
||||
# pointer (git submodule update --remote custom_models).
|
||||
- git+ssh://git@git.tk-ai.eu/Tom/eDNA_Stream_E01_custom_models.git@87c6427
|
||||
|
||||
@@ -9,7 +9,9 @@ dependencies:
|
||||
- pip
|
||||
- pip:
|
||||
- pod5
|
||||
# E1 genus probe package, checked out as the `custom_models` submodule
|
||||
# in the repo root (torch comes from conda here).
|
||||
# Relative path assumes snakemake is invoked from `workflow/`.
|
||||
- ../custom_models
|
||||
# E1 genus probe package, git-installed (pinned to the packaged
|
||||
# submodule commit) rather than a relative-path install: snakemake
|
||||
# copies env yamls into .snakemake/conda/, where relative paths
|
||||
# break. Bump the ref together with the `custom_models` submodule
|
||||
# pointer (git submodule update --remote custom_models).
|
||||
- git+ssh://git@git.tk-ai.eu/Tom/eDNA_Stream_E01_custom_models.git@87c6427
|
||||
|
||||
Reference in New Issue
Block a user