git clone https://github.com/alibaba/zvec.git
git submodule update --init --recursive
python3.12 -m venv xenv312
source xenv312/bin/activate
pip install -e ".[dev]"
python3 -c "import zvec; print('Success!')"
cmake -B build -DBUILD_PYTHON_BINDINGS=ON -DBUILD_TOOLS=OFF
lib/_zvec.cpython-312-darwin.so
https://github.com/boostorg/boost/releases/download/boost-1.88.0/boost-1.88.0-cmake.tar.gz
ninja hnsw_sparse_builder_test
./bin/hnsw_sparse_builder_test
# 单元测试
pytest python/tests/ -v
# 覆盖率
pytest python/tests/ --cov=zvec --cov-report=term-missing
pip install pre-commit
pre-commit run