Skip to content

Commit 9a64a31

Browse files
committed
fix tool installation
1 parent b60ee7b commit 9a64a31

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker/build_scripts/finalize.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ pipx upgrade-shared --pip-args="--no-index --find-links=/tmp/pinned-wheels"
8080
# install other tools with pipx
8181
for TOOL_PATH in $(find ${MY_DIR}/requirements-tools -type f); do
8282
TOOL=$(basename ${TOOL_PATH})
83-
# uv doesn't provide musl s390x wheels due to Rust issues
84-
if [[ "${TOOL}" != "uv" || "${BASE_POLICY}-${AUDITWHEEL_ARCH}" != "musllinux-s390x" ]]; then
85-
pipx install --pip-args="--require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL}
86-
fi
83+
case ${AUDITWHEEL_PLAT}-${TOOL} in
84+
musllinux*_armv7l-swig) apk add --no-cache swig;;
85+
musllinux*_armv7l-cmake) apk add --no-cache cmake;;
86+
musllinux*_s390x-uv) continue;; # uv doesn't provide musl s390x wheels due to Rust issues
87+
*) pipx install --pip-args="--require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL};;
88+
esac
8789
done
8890

8991
# We do not need the precompiled .pyc and .pyo files.

0 commit comments

Comments
 (0)