Skip to content

Commit 3b7371b

Browse files
committed
set numpy version <1.20
1 parent cea1dbe commit 3b7371b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install torch numpy scikit-learn flake8 setuptools wheel twine numba
20+
pip install torch "numpy<1.20" scikit-learn flake8 setuptools wheel twine numba
2121
- name: Build package
2222
run: |
2323
python setup.py build_ext --inplace

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
WITH_CUDA = True
2222
WITH_CPU = False
2323
if os.getenv('FORCE_ONLY_CPU', '0') == '1':
24-
WITH_CPU = True
2524
WITH_CUDA = False
25+
WITH_CPU = True
2626

2727
def get_ext_modules():
2828
TORCH_MAJOR = int(torch.__version__.split(".")[0])
@@ -77,7 +77,7 @@ def get_cmdclass():
7777
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
7878
long_description = f.read()
7979

80-
requirements = ["torch>=1.1.0", "numba", "scikit-learn"]
80+
requirements = ["torch>=1.1.0", "numba", "numpy<1.20", "scikit-learn"]
8181

8282
url = "https://github.com/nicolas-chaulet/torch-points-kernels"
8383
__version__ = "0.6.10"

0 commit comments

Comments
 (0)