Skip to content

Commit

Permalink
Set numpy version to 1.18.0 to workaround numpy/numpy#15947
Browse files Browse the repository at this point in the history
  • Loading branch information
kyamagu committed Oct 23, 2020
1 parent 8318ba4 commit 4cb5abf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -102,6 +102,8 @@ jobs:
make install
cd ../..
- name: Build package
env:
NUMPY_VERSION: '1.18.0'
run: |
# Hack to include hard-coded `<faiss/python/python_callbacks.h>`
mkdir /usr/local/include/faiss/python/
Expand All @@ -110,7 +112,7 @@ jobs:
touch faiss/contrib/__init__.py
pip install --no-cache-dir -U pip
pip install --no-cache-dir wheel numpy
pip install --no-cache-dir wheel numpy==${NUMPY_VERSION}
python setup.py sdist
pip wheel . -w wheelhouse --no-deps --verbose
auditwheel repair wheelhouse/faiss*.whl -w dist
Expand Down Expand Up @@ -173,6 +175,8 @@ jobs:
make install
cd ../..
- name: Build package
env:
NUMPY_VERSION: '1.18.0'
run: |
# Hack to include hard-coded `<faiss/python/python_callbacks.h>`
mkdir /usr/local/include/faiss/python/
Expand All @@ -181,7 +185,7 @@ jobs:
touch faiss/contrib/__init__.py
pip install --no-cache-dir -U pip
pip install --no-cache-dir wheel numpy
pip install --no-cache-dir wheel numpy==${NUMPY_VERSION}
pip wheel . -w dist --no-deps --verbose
ls -lh dist/
- name: Install and test
Expand Down

0 comments on commit 4cb5abf

Please sign in to comment.