From 2dd59c4ba130ed64f14cb9f85c4261ff0e3442ec Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Thu, 24 Jul 2025 21:44:04 -0700 Subject: [PATCH] fix: let auditwheel auto-detect manylinux platform tag - Remove --plat manylinux2014_x86_64 flag that was causing build failures - Let auditwheel automatically determine the appropriate manylinux tag - Add auditwheel show command to display compatibility info - This fixes the 'too-recent versioned symbols' error --- .github/workflows/build-reusable.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-reusable.yml b/.github/workflows/build-reusable.yml index 0d6539e..dfdbea2 100644 --- a/.github/workflows/build-reusable.yml +++ b/.github/workflows/build-reusable.yml @@ -112,19 +112,25 @@ jobs: - name: Repair wheels (Linux) if: runner.os == 'Linux' run: | - # Repair HNSW wheel - use manylinux2014 for better compatibility + # Repair HNSW wheel cd packages/leann-backend-hnsw if [ -d dist ]; then - auditwheel repair dist/*.whl -w dist_repaired --plat manylinux2014_x86_64 + # Show what platform auditwheel will use + auditwheel show dist/*.whl || true + # Let auditwheel auto-detect the appropriate manylinux tag + auditwheel repair dist/*.whl -w dist_repaired rm -rf dist mv dist_repaired dist fi cd ../.. - # Repair DiskANN wheel - use manylinux2014 for better compatibility + # Repair DiskANN wheel cd packages/leann-backend-diskann if [ -d dist ]; then - auditwheel repair dist/*.whl -w dist_repaired --plat manylinux2014_x86_64 + # Show what platform auditwheel will use + auditwheel show dist/*.whl || true + # Let auditwheel auto-detect the appropriate manylinux tag + auditwheel repair dist/*.whl -w dist_repaired rm -rf dist mv dist_repaired dist fi