Skip to content

Fix DeprecationWarning of conda.common.io.env_vars #1321

Description

@lrandersson

In conda_interface.py we import env_vars from conda.common.io. This has been deprecated:

PendingDeprecationWarning: conda.common.io.env_vars is pending deprecation and will be removed in 27.3.

as of conda 26.3.0 (source).

This should be fixed before being removed.

Conda's own suggested replacement is monkeypatch.setenv/delenv, but that's for pytest and as far as I know it doesnt have the same callback parameter (to call conda_replace_context_default on enter/exit), and in our case env_vars is used in fcp.py in production and not in tests.

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