Skip to content

Commit 7325da7

Browse files
kevinjqliuCTTY
authored andcommitted
fix: explicitly set Python interpreter in maturin build to prevent using wrong version (#2277)
(cherry picked from commit 4c08d35)
1 parent 7ef4063 commit 7325da7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/bindings_python_ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-slim
6060
steps:
6161
- uses: actions/checkout@v6
62-
- uses: astral-sh/setup-uv@v7
62+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
6363
with:
6464
version: "0.9.3"
6565
enable-cache: true
@@ -93,8 +93,8 @@ jobs:
9393
with:
9494
working-directory: "bindings/python"
9595
command: build
96-
args: --out dist
97-
- uses: astral-sh/setup-uv@v7
96+
args: --out dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
97+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
9898
with:
9999
version: "0.9.3"
100100
enable-cache: true

.github/workflows/release_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
manylinux: ${{ matrix.manylinux || 'auto' }}
192192
working-directory: "bindings/python"
193193
command: build
194-
args: --release -o dist
194+
args: --release -o dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
195195
- name: Upload wheels
196196
uses: actions/upload-artifact@v7
197197
with:

.github/workflows/release_python_nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
manylinux: ${{ matrix.manylinux || 'auto' }}
102102
working-directory: "bindings/python"
103103
command: build
104-
args: --release -o dist
104+
args: --release -o dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
105105

106106
- name: Upload wheels
107107
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)