don't use old builder version

This commit is contained in:
Alex O'Connell
2024-08-17 13:14:24 -04:00
parent 1d50c3f589
commit 094e469fd9
3 changed files with 5 additions and 8 deletions

View File

@@ -2,15 +2,13 @@
# Don't run this. This is executed inside of the home assistant container to build the wheel
apk update
apk add build-base python3-dev cmake
apk add build-base python3-dev
cd /tmp
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python --branch $1
cd llama-cpp-python
pip3 install build
# for some reason, scikit-build-core v0.9.7+ doesn't produce properly tagged musllinux wheels
sed -i -e 's/scikit-build-core\[pyproject\]>=0.9.2/scikit-build-core\[pyproject\]==0.9.6/g' pyproject.toml
export CMAKE_ARGS="-DLLAVA_BUILD=OFF -DGGML_NATIVE=ON"
python3 -m build --wheel
cp -f ./dist/*.whl /tmp/dist/