Skip to content

ci(pyo3): drop unsupported --interpreter flag from maturin develop - #105

Closed
vikrantpuppala wants to merge 1 commit into
mainfrom
fix/maturin-develop-interpreter-flag
Closed

vikrantpuppala wants to merge 1 commit into
mainfrom
fix/maturin-develop-interpreter-flag

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

What

The PyO3 Checks workflow fails at the Build + install pyo3 wheel (maturin develop) step on both Python 3.9 and 3.12:

$ uv run maturin develop --interpreter python3.12
error: unexpected argument '--interpreter' found
Usage: maturin develop [OPTIONS] [ARGS]...

Why

maturin 1.13.x (CI resolves maturin>=1.5,<2.0 -> 1.13.3) removed the --interpreter / -i flag from the develop subcommand — it now only exists on maturin build. maturin develop always installs into the active virtualenv's interpreter.

In this job that venv is the one uv sync --group dev creates for the matrix Python version (actions/setup-python makes the matrix version the default python3), and uv run activates it. So the interpreter is already selected for us; the explicit flag is both unnecessary and now rejected.

Fix

Drop --interpreter python${{ matrix.python-version }} from the maturin develop invocation and document why the active venv already pins the interpreter.

-        run: uv run maturin develop --interpreter python${{ matrix.python-version }}
+        run: uv run maturin develop

Note

This bug is present on main, so this PR targets main directly. PR #101 (whose CI surfaced the failure) will pick up the fix once it rebases / after merge.

maturin 1.13.x removed the `--interpreter` flag from the `develop`
subcommand (it only exists on `build`). `maturin develop` always
targets the active virtualenv, which `uv run` selects via the
`uv sync`-created venv for the matrix Python version. Passing
`--interpreter` now fails with "error: unexpected argument
'--interpreter' found", breaking the PyO3 build job on both
Python 3.9 and 3.12.

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jun 2, 2026
@vikrantpuppala
vikrantpuppala removed this pull request from the merge queue due to a manual request Jun 2, 2026

This branch was previously deployed

1 inactive deployment
azure-prod — 0e4802f7 Deployed Jun 2, 2026 by vikrantpuppala via PyO3 build + test (Python 3.12) #16
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.

2 participants