Repository navigation
ci(pyo3): drop unsupported --interpreter flag from maturin develop - #105
Closed
vikrantpuppala wants to merge 1 commit into
Closed
vikrantpuppala wants to merge 1 commit into
vikrantpuppala wants to merge 1 commit into
Conversation
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>
msrathore-db
approved these changes
Jun 2, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The PyO3 Checks workflow fails at the Build + install pyo3 wheel (maturin develop) step on both Python 3.9 and 3.12:
Why
maturin 1.13.x (CI resolves
maturin>=1.5,<2.0->1.13.3) removed the--interpreter/-iflag from thedevelopsubcommand — it now only exists onmaturin build.maturin developalways installs into the active virtualenv's interpreter.In this job that venv is the one
uv sync --group devcreates for the matrix Python version (actions/setup-pythonmakes the matrix version the defaultpython3), anduv runactivates 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 thematurin developinvocation and document why the active venv already pins the interpreter.Note
This bug is present on
main, so this PR targetsmaindirectly. PR #101 (whose CI surfaced the failure) will pick up the fix once it rebases / after merge.