这是indexloc提供的服务,不要输入任何密码
Skip to content

Add --name/-n option to conda config #12137

@maximlt

Description

@maximlt

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

conda config can be used to configure an activated environment with conda config --env .... I believe this is a cool feature of conda. However, as I said the environment needs to be activated which poses some problem, I think, when conda is controlled programmatically through its command-line interface as you need to fiddle with the shell (I'd be happy to be proven wrong on this point!).

Adding --name/-n to conda config means that it would no longer be required to activate the environment to configure it. It would also make conda's CLI more consistent, as --name/-n is an option of conda create/install/update/remove(and more?).

Why is this needed?

The HoloViz group has a developer tool called pyctdev that is meant to be a unified interface for managing a Python project (e.g. doit test_unit, doit build_package, doit build_docs, ...). The user can either choose conda or pip as their dependency manager, i.e. pyctdev knows how to parse and convert the dependencies listed in a setup.py file so that they can be installed with conda. We're trying to see how we can improve this tool and being able to configure an environment without activating it would be a cool feature.

What should happen?

No response

Additional Context

I tried to look for related issues but looking for conda config just returns hundred of issues, sorry if this is a duplicate!

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuegreat for new contributors, code change is envisioned to be trivial/relatively straight-forwardlocked[bot] locked due to inactivityplugins::configpertains to conda-configsource::anacondacreated by members of Anaconda, Inc.stale::recovered[bot] recovered after being marked as staletype::featurerequest for a new feature or capability

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions