Skip to content

fix: support pixi-managed virtualenvs in maturin develop#3165

Open
eyupcanakman wants to merge 1 commit intoPyO3:mainfrom
eyupcanakman:feat/pixi-venv-detection
Open

fix: support pixi-managed virtualenvs in maturin develop#3165
eyupcanakman wants to merge 1 commit intoPyO3:mainfrom
eyupcanakman:feat/pixi-venv-detection

Conversation

@eyupcanakman
Copy link
Copy Markdown

Fixes #2713.

Pixi sets CONDA_PREFIX and creates an environment without pyvenv.cfg, so is_uv_venv returned false. maturin develop then fell back to pip. Pixi does not preinstall pip, so users saw "Failed to find pip" on every invocation.

is_pixi_venv checks for the conda-meta/pixi_env_prefix marker file (written by pixi 0.43+) and routes detected envs through the same uv backend path used for uv-created venvs.

Pixi sets `CONDA_PREFIX` and creates an environment without a
`pyvenv.cfg`, so `is_uv_venv` returned false and maturin fell back to
pip. Pixi does not preinstall pip, which produced "Failed to find pip"
on `maturin develop`.

Detect pixi environments via the `conda-meta/pixi_env_prefix` marker
file written by recent pixi versions, and route them through the same
uv backend path used for uv-created venvs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for pixi venvs

1 participant