Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Latest commit

 

History

History
29 lines (21 loc) · 623 Bytes

File metadata and controls

29 lines (21 loc) · 623 Bytes

llama-cpp-cffi

Build

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

# local build
poetry install --all-extras --all-groups

# 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:v1.0.0
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