- Use manylinux_2_35 (GLIBC 2.35) instead of manylinux2014 (GLIBC 2.17) - Still compatible with Google Colab (requires ≤2.35) - Benefits: newer toolchain, better performance, modern C++ features - Switch from yum to dnf package manager - Remove pyzmq version cap as manylinux_2_35 has newer ZeroMQ - Update documentation to reflect the change
29 lines
844 B
TOML
29 lines
844 B
TOML
# packages/leann-backend-hnsw/pyproject.toml
|
|
|
|
[build-system]
|
|
requires = ["scikit-build-core>=0.10", "numpy", "swig"]
|
|
build-backend = "scikit_build_core.build"
|
|
|
|
[project]
|
|
name = "leann-backend-hnsw"
|
|
version = "0.1.8"
|
|
description = "Custom-built HNSW (Faiss) backend for the Leann toolkit."
|
|
dependencies = [
|
|
"leann-core==0.1.8",
|
|
"numpy",
|
|
"pyzmq>=23.0.0",
|
|
"msgpack>=1.0.0",
|
|
]
|
|
|
|
[tool.scikit-build]
|
|
wheel.exclude = ["CMakeLists.txt", "src", "third_party"]
|
|
sdist.include = ["CMakeLists.txt", "src", "third_party", "leann_backend_hnsw/*.txt"]
|
|
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
|
|
# Ensure CMake can find system libraries
|
|
build-dir = "build/{cache_tag}"
|
|
minimum-version = "build-system.requires"
|
|
|
|
# CMake definitions to optimize compilation
|
|
[tool.scikit-build.cmake.define]
|
|
CMAKE_BUILD_PARALLEL_LEVEL = "8"
|
|
SKBUILD_SOABI = "YES" |