fix: use manylinux2014 for better Linux compatibility

- Change auditwheel --plat to manylinux2014_x86_64
- This ensures wheels work on Ubuntu 16.04+ instead of requiring 24.04+
- Fixes compatibility issues for users on Ubuntu 22.04 and similar systems
This commit is contained in:
Andy Lee
2025-07-24 21:26:28 -07:00
parent ed27a127d5
commit a6aec68f32

View File

@@ -112,19 +112,19 @@ jobs:
- name: Repair wheels (Linux)
if: runner.os == 'Linux'
run: |
# Repair HNSW wheel
# Repair HNSW wheel - use manylinux2014 for better compatibility
cd packages/leann-backend-hnsw
if [ -d dist ]; then
auditwheel repair dist/*.whl -w dist_repaired
auditwheel repair dist/*.whl -w dist_repaired --plat manylinux2014_x86_64
rm -rf dist
mv dist_repaired dist
fi
cd ../..
# Repair DiskANN wheel
# Repair DiskANN wheel - use manylinux2014 for better compatibility
cd packages/leann-backend-diskann
if [ -d dist ]; then
auditwheel repair dist/*.whl -w dist_repaired
auditwheel repair dist/*.whl -w dist_repaired --plat manylinux2014_x86_64
rm -rf dist
mv dist_repaired dist
fi