Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 610 Bytes

BUILD.md

File metadata and controls

29 lines (21 loc) · 610 Bytes

llama-cpp-cffi

Build

# setup venv
python -m venv venv
source venv/bin/activate
pip install poetry

# local build
# poetry install --all-extras

# clean build
poetry run clean

# x86_64
poetry run cibuildwheel --output-dir wheelhouse --platform linux --arch x86_64 .

# aarch64
docker run --rm --privileged linuxkit/binfmt:v0.8
poetry run cibuildwheel --output-dir wheelhouse --platform linux --arch aarch64 .

# pyodide, pyscript, wasm (NOTE: cannot be published to PyPI)
# poetry run cibuildwheel --output-dir wheelhouse --platform pyodide .

# publish
poetry publish --dist-dir wheelhouse