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 committed Sep 1, 2021
1 parent afb07b9 commit 971e616
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 @@ -76,7 +76,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 971e616

Please sign in to comment.