Skip to content

Python dependency gets wrong category name when pip is only used in dev dependencies. #275

Description

Hi,

I have an environment file environment.yml:

category: main
dependencies:
  - python=3.10.6

And a dev environment dev-environment.yml:

category: dev
dependencies:
- pip:
   - numpy

When I create the lock file (conda-lock lock -f environment.yml -f dev-environment.yml --check-input-hash --mamba) the python dependency will now have category: dev. This breaks conda-lock install --no-dev since python will not be installed.

Probably something in the pip code overwrites the category of python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions