Skip to content

Commit

Permalink
fix: correct maturin Python interpreter flag
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
dirvine committed Nov 29, 2024
1 parent 9faaafd commit ad72e84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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/[email protected]
if: matrix.target != 'ppc64'
Expand Down

0 comments on commit ad72e84

Please sign in to comment.