Skip to content

Commit 744258a

Browse files
committed
fix: use /opt/python-3.12/bin/python3.12 on RISE runner
Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent b19e9c5 commit 744258a

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,8 @@ jobs:
5858
- name: Setup Python for riscv64
5959
if: matrix.buildplat[1] == 'manylinux_riscv64'
6060
run: |
61-
# Find a working Python 3 on the RISE runner
62-
for py in /opt/python-3.12/bin/python3 /opt/python-3.12/bin/python3.12 /opt/python-3.11/bin/python3 /opt/python-3.13/bin/python3; do
63-
if [ -x "$py" ]; then
64-
PYTHON="$py"
65-
break
66-
fi
67-
done
68-
if [ -z "$PYTHON" ]; then
69-
PYTHON=$(which python3 2>/dev/null || which python 2>/dev/null)
70-
fi
71-
echo "Using Python: $PYTHON"
72-
ls -la "$(dirname "$PYTHON")/"
73-
echo "$(dirname "$PYTHON")" >> "$GITHUB_PATH"
74-
"$PYTHON" -m pip install cibuildwheel==2.23.3
61+
echo "/opt/python-3.12/bin" >> "$GITHUB_PATH"
62+
/opt/python-3.12/bin/python3.12 -m pip install cibuildwheel==2.23.3
7563
7664
- name: Setup MSVC (32-bit)
7765
if: ${{ matrix.buildplat[1] == 'win32' }}

0 commit comments

Comments
 (0)