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:
2
.github/workflows/build-cibuildwheel.yml
vendored
2
.github/workflows/build-cibuildwheel.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user