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

Use deterministic stage target #8

Open HenrikBengtsson opened 2 years ago

HenrikBengtsson commented 2 years ago

When running interactively, one might wanna stage and unstage multiple times.

One could make the target folder deterministic so that it can be reused. Maybe something like:

One could compare the timestamp of the .conda-stage file with the tarball to decide whether one needs to rebuild or not.

For this approach to work, we need and option not to wipe, e.g. --no-cleanup.

HenrikBengtsson commented 2 years ago

An advantage of a process-specific (PID/PPID) stage target is that one could set up TMPDIR cleanup process that aggressively cleans out left-over conda-staged temp folders.