diff --git a/pyproject.toml b/pyproject.toml index 042e4a6..fd9675e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,14 @@ [build-system] -requires = ["setuptools", "wheel", "cython", "numpy"] +requires = [ + "setuptools", + "wheel", + "cython", + "numpy", + "numpy==1.14.5; python_version=='3.7'", + "numpy==1.17.3; python_version=='3.8'", + "numpy==1.19.3; python_version=='3.9'", + "numpy==1.21.3; python_version=='3.10'", +] build-backend = "setuptools.build_meta" [tool.cibuildwheel] diff --git a/setup.cfg b/setup.cfg index 62cdb0d..006e1e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,10 @@ install_requires = numpy resource-backed-dask-array typing-extensions + numpy>=1.14.5;python_version=='3.7' + numpy>=1.17.3;python_version=='3.8' + numpy>=1.19.3;python_version=='3.9' + numpy>=1.21.3;python_version=='3.10' python_requires = >=3.7,<3.11 include_package_data = True package_dir =