From 0e4802f7a5e3fdb1dcc2ba6e468d26f50a5d95ba Mon Sep 17 00:00:00 2001 From: Vikrant Puppala Date: Tue, 2 Jun 2026 04:46:00 +0000 Subject: [PATCH] ci(pyo3): drop unsupported --interpreter flag from maturin develop 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 --- .github/workflows/pyo3-checks.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pyo3-checks.yml b/.github/workflows/pyo3-checks.yml index e43ae918..731b647d 100644 --- a/.github/workflows/pyo3-checks.yml +++ b/.github/workflows/pyo3-checks.yml @@ -145,7 +145,12 @@ jobs: # `develop` builds the extension and installs it into the # uv-managed venv from the previous step. Debug build is # fine for tests and ~2x faster than --release. - run: uv run maturin develop --interpreter python${{ matrix.python-version }} + # + # maturin's `develop` always targets the active virtualenv's + # interpreter and (unlike `build`) has no --interpreter flag; + # `uv run` already activates the venv `uv sync` created for the + # matrix Python version, so the interpreter is selected for us. + run: uv run maturin develop - name: pytest (no-network + live tiers) working-directory: pyo3