astral-sh/uv

Add `conda` environment support for `--active` flag

Open

#11,315 opened on 2025年2月7日

GitHub で見る
 (5 comments) (8 reactions) (0 assignees)Rust (3,111 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (平均マージ 7d 16h) (30d で 259 merged PRs)

説明

Summary

The new --active flag (https://github.com/astral-sh/uv/pull/11189) is a great addition and I think it goes some way to allow uv and conda to work better together. But it does not respect conda environment and only use VIRTUAL_ENV variable.

Would it be possible to add a support for conda environment for --active flag? Simply using CONDA_PREFIX instead of VIRTUAL_ENV when CONDA_DEFAULT_ENV is not base and not empty would be enough, I guess.

Example

No response

コントリビューターガイド