Skip to content

Commit 4c08d35

Browse files
authored
fix: explicitly set Python interpreter in maturin build to prevent using wrong version (#2277)
1 parent f17663b commit 4c08d35

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/bindings_python_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
with:
9494
working-directory: "bindings/python"
9595
command: build
96-
args: --out dist
96+
args: --out dist -i python3.12 # Explicitly set interpreter; manylinux containers have multiple Pythons and maturin may pick an older one
9797
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
9898
with:
9999
version: "0.9.3"

.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)