Skip to content
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

VIRTUAL_ENV takes precedence over CONDA_PREFIX #2574

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Mar 20, 2024

It is a common pattern to have an active conda base env (that sets CONDA_PREFIX) and then create a venv on top of that (setting VIRTUAL_ENV).

Previously, we would error when both VIRTUAL_ENV and CONDA_PREFIX were set, now VIRTUAL_ENV takes precedence over CONDA_PREFIX.

Fixes #2028

It is a common pattern to have an active conda base env (that sets `CONDA_PREFIX`) and then create a venv on top of that (setting `VIRTUAL_ENV`).

Previously, we would error when both `VIRTUAL_ENV` and `CONDA_PREFIX` were set, now `VIRTUAL_ENV` takes precedence over `CONDA_PREFIX`.

Fixes #2028
@konstin konstin added the enhancement New feature or request label Mar 20, 2024
@charliermarsh charliermarsh merged commit 7111fdd into main Mar 20, 2024
31 checks passed
@charliermarsh charliermarsh deleted the konsti/venv-before-conda branch March 20, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to activate VIRTUAL_ENV when CONDA_PREFIX exists
2 participants