Skip to content

Commit

Permalink
Install cmake with apk on musllinux
Browse files Browse the repository at this point in the history
There are no wheels for CMake on musllinux and since it takes a long
time to build it from source, we can instead install it with the OS
package manager until wheels are available.
  • Loading branch information
lkollar authored and mayeut committed Sep 18, 2021
1 parent 44cd755 commit 5633492
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/build_scripts/finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ deactivate
pushd $MY_DIR/requirements-tools
for TOOL_PATH in $(find . -type f); do
TOOL=$(basename ${TOOL_PATH})
pipx install --pip-args="--require-hashes -r" ${TOOL}
if [ "${TOOL}" == "cmake" ] && [ "${POLICY}" == "musllinux_1_1" ]; then
# TODO remove this exception once https://github.com/scikit-build/cmake-python-distributions
# provides a musllinux wheel
apk add --no-cache cmake
else
pipx install --pip-args="--require-hashes -r" ${TOOL}
fi
done
popd

Expand Down

0 comments on commit 5633492

Please sign in to comment.