From ad72e840c508349f6eec074a1302f2c7ce6f2296 Mon Sep 17 00:00:00 2001 From: David Irvine Date: Fri, 29 Nov 2024 20:45:47 +0000 Subject: [PATCH] fix: correct maturin Python interpreter flag - Changed --python flag to -i for maturin compatibility - Added interpreter flag to all build jobs - Unified Python version handling across all platforms - Fixed incorrect maturin CLI argument syntax This fixes the "unexpected argument '--python'" error by using the correct flag syntax for specifying the Python interpreter. --- .github/workflows/python-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ca367c6d2..6e71ebec1 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -34,7 +34,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist + args: --release --out dist -i python${{ matrix.python-version }} sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 @@ -62,7 +62,7 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@v1 with: - args: --release --out dist + args: --release --out dist -i python${{ matrix.python-version }} sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 @@ -90,7 +90,7 @@ jobs: with: target: ${{ matrix.target }} manylinux: auto - args: --release --out dist --python python${{ matrix.python-version }} + args: --release --out dist -i python${{ matrix.python-version }} - name: Install built wheel if: matrix.target == 'x86_64' run: | @@ -133,7 +133,7 @@ jobs: with: target: ${{ matrix.target }} manylinux: auto - args: --release --out dist --python python${{ matrix.python-version }} + args: --release --out dist -i python${{ matrix.python-version }} maturin-version: "v0.13.0" - uses: uraimo/run-on-arch-action@v2.0.5 if: matrix.target != 'ppc64'