Skip to content

CLN: Fixes to conda environment names #23851

Closed
@datapythonista

Description

@datapythonista

We have some inconsistency regarding the names of the conda environment. At the moment, all environments for the CI are named pandas, and the environment created locally following the set up instructions (and using environment.yml) is named pandas-dev.

Then, inside several scripts (e.g. ci/code_checks.sh) we do a source activate pandas. Which means that the script works well in CI jobs, but it fails locally unless we also have a pandas environment locally.

Another thing is that in the CI config we use a CONDA_ENV environment variable, and we ignore the conda environment names in the yaml files.

What I would do is:

  • Use pandas-dev as the environment name in all our conda yaml files
  • Create the environments with the environment name in the used yaml file (do not override with -n $CONDA_ENV as we do now)
  • Do not use source activate inside the scripts (use it in the steps in the CI config files when needed). This way when running scripts locally, the current environment will be used

@jreback @TomAugspurger @jorisvandenbossche any objection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions