Skip to content

Commit db8dfac

Browse files
committed
fix: strip broken /opt/python from PATH, use /usr/bin/python3 explicitly
1 parent 19a9da7 commit db8dfac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build-riscv64.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
2929
- name: Set up Python
3030
run: |
31+
# Remove broken /opt/python from PATH
32+
export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v /opt/python | tr '\n' ':' | sed 's/:$//')
3133
sudo apt-get install -y python3-venv python3-pip python3-dev
32-
python3 -m venv --without-pip /tmp/build-venv
34+
/usr/bin/python3 -m venv --without-pip /tmp/build-venv
3335
. /tmp/build-venv/bin/activate
34-
curl -sS https://bootstrap.pypa.io/get-pip.py | python3
36+
curl -sS https://bootstrap.pypa.io/get-pip.py | /usr/bin/python3
3537
pip install --upgrade setuptools wheel
3638
3739
- name: Build wheel

0 commit comments

Comments
 (0)