Skip to content

Commit 20b754e

Browse files
committed
fix: strip broken /opt/python from PATH on riscv64 RISE runners
1 parent b5d7b00 commit 20b754e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ jobs:
166166
uses: docker/setup-qemu-action@v3
167167
if: matrix.arch != 'x86_64' && matrix.arch != 'i686' && matrix.arch != 'aarch64' && matrix.arch != 'riscv64'
168168

169+
- name: fix Python path (riscv64)
170+
if: matrix.arch == 'riscv64'
171+
run: |
172+
# Remove broken /opt/python from PATH (missing stdlib modules on RISE runners)
173+
echo "PATH=$(echo "$PATH" | tr ':' '\n' | grep -v /opt/python | tr '\n' ':' | sed 's/:$//')" >> "$GITHUB_ENV"
174+
169175
- name: build/test wheels
170176
id: build
171177
env:

0 commit comments

Comments
 (0)