fix: re-enable Faiss Python bindings and improve Python finding

- Re-enable FAISS_ENABLE_PYTHON since we need the Python bindings
- Use Development.Module component for better compatibility
- Pass Python information to Faiss through CMake cache variables
- Add CMAKE_PREFIX_PATH= to help CMake find Python in manylinux
This commit is contained in:
Andy Lee
2025-07-25 10:45:07 -07:00
parent e9c2ca7936
commit cf58b3e31b
2 changed files with 28 additions and 2 deletions

View File

@@ -122,11 +122,11 @@ jobs:
# Linux-specific environment variables
CIBW_ENVIRONMENT_LINUX: |
CMAKE_BUILD_PARALLEL_LEVEL=8
CMAKE_PREFIX_PATH=$VIRTUAL_ENV
Python_FIND_VIRTUALENV=ONLY
Python3_FIND_VIRTUALENV=ONLY
Python_FIND_STRATEGY=LOCATION
Python3_FIND_STRATEGY=LOCATION
CMAKE_PREFIX_PATH=$VIRTUAL_ENV
Python_EXECUTABLE=$VIRTUAL_ENV/bin/python
Python3_EXECUTABLE=$VIRTUAL_ENV/bin/python