HenrikBengtsson / conda-stage

conda-stage: Stage a Conda Environment on Local Disk
https://github.com/HenrikBengtsson/conda-stage
ISC License
7 stars 0 forks source link

Inject optional setup commands #33

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

When installing auto-staging, the user still have to make sure conda-stage is on the PATH.

Suggestion: add support for prepending the injected conda-stage command with a command string of choice. This can be specified via a CLI option (e.g. --prelogue="module load CBI conda-stage") or via an environment variable (which then can be configured centrally) (e.g. CONDA_STAGE_PRELOGUE="module load CBI conda-stage")

PS. The best solution, in the long run, would be too make conda-stage into a conda package, which the could be added as a dependency part of the conda environment.