Skip to content

Commit 5633492

Browse files
lkollarmayeut
authored andcommitted
Install cmake with apk on musllinux
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.
1 parent 44cd755 commit 5633492

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/build_scripts/finalize.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ deactivate
7575
pushd $MY_DIR/requirements-tools
7676
for TOOL_PATH in $(find . -type f); do
7777
TOOL=$(basename ${TOOL_PATH})
78-
pipx install --pip-args="--require-hashes -r" ${TOOL}
78+
if [ "${TOOL}" == "cmake" ] && [ "${POLICY}" == "musllinux_1_1" ]; then
79+
# TODO remove this exception once https://github.com/scikit-build/cmake-python-distributions
80+
# provides a musllinux wheel
81+
apk add --no-cache cmake
82+
else
83+
pipx install --pip-args="--require-hashes -r" ${TOOL}
84+
fi
7985
done
8086
popd
8187

0 commit comments

Comments
 (0)