Skip to content

Commit d6818bb

Browse files
committed
install zip for rpath mangling
1 parent 6be4a46 commit d6818bb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/posix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ jobs:
115115
else
116116
libc=${MB_ML_LIBC:-manylinux}
117117
docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
118-
docker run --rm -e INTERFACE64="${INTERFACE64}" -v $(pwd):/openblas $docker_image /bin/bash -xe /openblas/travis-ci/build_wheel.sh
118+
docker run --rm -e INTERFACE64="${INTERFACE64}" \
119+
-e MB_ML_LIBC="${MB_ML_LIBC} \
120+
-v $(pwd):/openblas $docker_image \
121+
/bin/bash -xe /openblas/travis-ci/build_wheel.sh
119122
fi
120123
121124
- uses: actions/upload-artifact@v3

travis-ci/build_wheel.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ else
5959
rm dist/scipy_openblas*-none-any.whl
6060
# Add an RPATH to libgfortran:
6161
# https://github.com/pypa/auditwheel/issues/451
62+
if [ "$MB_ML_LIBC" == "musllinux" ]; then
63+
apk add zip
64+
else
65+
yum install -y zip
66+
fi
6267
unzip dist/*.whl "*libgfortran*"
6368
patchelf --force-rpath --set-rpath '$ORIGIN' */lib/libgfortran*
6469
zip dist/*.whl */lib/libgfortran*

0 commit comments

Comments
 (0)