Skip to content

Commit 81df585

Browse files
committed
fix: retag wheel to manylinux_2_34, exclude vendor headers from wheel
1 parent 3dd17e6 commit 81df585

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ampere-build-and-release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737
run: python3 -m cibuildwheel --output-dir wheelhouse
3838
env:
3939
CIBW_SKIP: "*musllinux* pp*"
40-
CIBW_REPAIR_WHEEL_COMMAND: ""
40+
CIBW_REPAIR_WHEEL_COMMAND: >-
41+
pip install wheel &&
42+
python -m wheel tags --platform-tag manylinux_2_34_aarch64 --remove {wheel} &&
43+
mv $(dirname {wheel})/*.whl {dest_dir}/
4144
CIBW_ARCHS: "aarch64"
4245
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_34_aarch64"
4346
CIBW_BEFORE_ALL: "dnf install -y gcc-toolset-13"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ all = [
6464

6565
[tool.scikit-build]
6666
wheel.packages = ["llama_cpp"]
67+
wheel.exclude = ["bin/**", "include/**", "lib64/**", "share/**"]
6768
cmake.verbose = true
6869
cmake.minimum-version = "3.21"
6970
minimum-version = "0.5.1"

0 commit comments

Comments
 (0)