From 9a64a31477a1cd1b8c518812485055d66ce5b1e2 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 11 Mar 2023 12:12:50 +0100 Subject: [PATCH] fix tool installation --- docker/build_scripts/finalize.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/build_scripts/finalize.sh b/docker/build_scripts/finalize.sh index fc5a9955..798d82b0 100755 --- a/docker/build_scripts/finalize.sh +++ b/docker/build_scripts/finalize.sh @@ -80,10 +80,12 @@ pipx upgrade-shared --pip-args="--no-index --find-links=/tmp/pinned-wheels" # install other tools with pipx for TOOL_PATH in $(find ${MY_DIR}/requirements-tools -type f); do TOOL=$(basename ${TOOL_PATH}) - # uv doesn't provide musl s390x wheels due to Rust issues - if [[ "${TOOL}" != "uv" || "${BASE_POLICY}-${AUDITWHEEL_ARCH}" != "musllinux-s390x" ]]; then - pipx install --pip-args="--require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL} - fi + case ${AUDITWHEEL_PLAT}-${TOOL} in + musllinux*_armv7l-swig) apk add --no-cache swig;; + musllinux*_armv7l-cmake) apk add --no-cache cmake;; + musllinux*_s390x-uv) continue;; # uv doesn't provide musl s390x wheels due to Rust issues + *) pipx install --pip-args="--require-hashes -r ${TOOL_PATH} --only-binary" ${TOOL};; + esac done # We do not need the precompiled .pyc and .pyo files.