Skip to content

Commit

Permalink
fix tool installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Aug 31, 2024
1 parent b60ee7b commit 9a64a31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/build_scripts/finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9a64a31

Please sign in to comment.