Skip to content

Commit d75f85b

Browse files
committed
only install the compatible wheel
1 parent 7661f15 commit d75f85b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python_wheel_build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ jobs:
5454

5555
- name: Install produced wheel
5656
run: |
57-
pip install wheels/*.whl
57+
PY_VER=$(python -c "import sys; print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
58+
echo "Installing wheel for Python ABI: $PY_VER"
59+
WHEEL=$(ls wheels/*${PY_VER}*.whl | head -n 1)
60+
echo "Found wheel: $WHEEL"
61+
pip install "$WHEEL"
5862
5963
- name: Install tutorials dependencies
6064
run: |

0 commit comments

Comments
 (0)