Skip to content

Use .condarc to install extra packages #6336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
humitos opened this issue Oct 29, 2019 · 0 comments
Closed

Use .condarc to install extra packages #6336

humitos opened this issue Oct 29, 2019 · 0 comments
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required

Comments

@humitos
Copy link
Member

humitos commented Oct 29, 2019

conda has an option to install packages by default in all the environments created: https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#always-add-packages-by-default-create-default-packages

It seems that we can use this option instead of what we are currently doing:

  1. running an extra conda install command, or
  2. appending our core requirements to the user's environment.yml (feature flag CONDA_APPEND_CORE_REQUIREMENTS)

This has some benefits:

  • run only one command to create the whole environment
  • reduce build time
  • use a standard way to install default packages
  • remove our hacky code that does exactly the same
  • no need to activate the feature flag per-project

This config was added in 2.0.1, we can start using it without too much problem with the current docker images in production

Reference: readthedocs/readthedocs-docker-images#113

@humitos humitos added the Improvement Minor improvement to code label Oct 29, 2019
@humitos humitos added the Needed: design decision A core team decision is required label Nov 18, 2019
@humitos humitos closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

1 participant