fix: prevent pyzmq compilation during tests

- Cap pyzmq version to <27 for manylinux2014 compatibility
- Pre-install pyzmq binary wheel before tests using CIBW_BEFORE_TEST
- Force pip to use only binary wheels with --only-binary :all:
This commit is contained in:
Andy Lee
2025-07-25 11:35:31 -07:00
parent b8ff00fc6a
commit 3c8d32f156
5 changed files with 76 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ description = "Custom-built HNSW (Faiss) backend for the Leann toolkit."
dependencies = [
"leann-core==0.1.8",
"numpy",
"pyzmq>=23.0.0",
"pyzmq>=23.0.0,<27", # Cap at 26.x for manylinux2014 compatibility
"msgpack>=1.0.0",
]

View File

@@ -15,7 +15,7 @@ dependencies = [
"numpy>=1.20.0",
"tqdm>=4.60.0",
"psutil>=5.8.0",
"pyzmq>=23.0.0",
"pyzmq>=23.0.0,<27", # Cap at 26.x for manylinux2014 compatibility
"msgpack>=1.0.0",
"torch>=2.0.0",
"sentence-transformers>=2.2.0",