diff --git a/pyproject.toml b/pyproject.toml index 5abdf82efb..09d3ee11bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ # is 1.18.5, remove the line when they increase oldest supported Numpy for this platform "numpy==1.18.5; python_version=='3.8' and platform_machine not in 'arm64|aarch64'", "oldest-supported-numpy; python_version>'3.8' or platform_machine in 'arm64|aarch64'", - "scipy", + "scipy>=1.7.0,<=1.12.0", "setuptools", "wheel", ] diff --git a/setup.py b/setup.py index be7f58330b..30b9453867 100644 --- a/setup.py +++ b/setup.py @@ -331,7 +331,7 @@ def run(self): install_requires = [ NUMPY_STR, - 'scipy >= 1.7.0', + 'scipy>=1.7.0,<=1.12.0', 'smart_open >= 1.8.1', ]