Skip to content

WIP: add a conda clean function#2931

Closed
bgruening wants to merge 1 commit intogalaxyproject:release_16.07from
bgruening:conda_clean
Closed

WIP: add a conda clean function#2931
bgruening wants to merge 1 commit intogalaxyproject:release_16.07from
bgruening:conda_clean

Conversation

@bgruening
Copy link
Member

We should clean up after a conda installation.
Conda has a convenient function to clean packages and co. At least the downloaded tarballs can be removed after installation. This will greatly reduce the size of Galaxy flavors ...

usage: conda clean [-h] [-y] [--dry-run] [--json] [-a] [-i] [-l] [-t] [-p]
                   [-s]

Remove unused packages and caches.

Options:

optional arguments:
  -h, --help          Show this help message and exit.
  -y, --yes           Do not ask for confirmation.
  --dry-run           Only display what would have been done.
  --json              Report all output as json. Suitable for using conda
                      programmatically.
  -a, --all           Remove index cache, lock files, tarballs, unused cache
                      packages, and source cache.
  -i, --index-cache   Remove index cache.
  -l, --lock          Remove all conda lock files.
  -t, --tarballs      Remove cached package tarballs.
  -p, --packages      Remove unused cached packages. Warning: this does not
                      check for symlinked packages.
  -s, --source-cache  Remove files from the source cache of conda build.

It's not yet tested, I hope I have time next week for this.

@bgruening bgruening added this to the 16.07 milestone Sep 16, 2016
@martenson martenson modified the milestones: 16.10, 16.07 Sep 20, 2016
@martenson martenson modified the milestones: 17.01, 16.10 Nov 16, 2016
@bgruening
Copy link
Member Author

@martenson @nsoranzo @mvdbeek I'm travelling right now and con not work on it until next week. But I think it would be nice to have. The idea here was to have an API endpoint that clears the conda-cache.
This should then be triggered either regularly or after the tools-playbook is finished. I would not trigger it after every installation, the caching of packages/tarballs might save some time if you install a lot of tools in one go.

@martenson
Copy link
Member

@bgruening This won't make it to the 16.10 anymore as it is frozen. So nurries about pushing this.

@martenson
Copy link
Member

martenson commented Nov 28, 2016

this PR seems obsolete given #3222 has been merged, closing (and thanks @bgruening !)

@martenson martenson closed this Nov 28, 2016
@bgruening bgruening deleted the conda_clean branch November 29, 2016 08:22
@bgruening
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants