Skip to content

Commit 197afc1

Browse files
committed
simplify required numpy version
1 parent 15f2030 commit 197afc1

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

setup.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,14 @@ def main():
1717
CI_BUILD = os.environ.get("CI_BUILD", "False")
1818
is_CI_build = True if CI_BUILD == "1" else False
1919
cmake_source_dir = "opencv"
20-
minimum_supported_numpy = "1.13.3"
20+
minimum_supported_numpy = "1.26.0"
2121
build_contrib = get_build_env_var_by_name("contrib")
2222
build_headless = get_build_env_var_by_name("headless")
2323
build_java = "ON" if get_build_env_var_by_name("java") else "OFF"
2424
build_rolling = get_build_env_var_by_name("rolling")
2525

2626
install_requires = [
27-
'numpy>=1.13.3,<2; python_version<"3.7"',
28-
'numpy>=1.17.0,<2; python_version>="3.7"', # https://github.com/numpy/numpy/pull/13725
29-
'numpy>=1.17.3,<2; python_version>="3.8"',
30-
'numpy>=1.19.3,<2; python_version>="3.9"',
31-
'numpy>=1.21.2,<2; python_version>="3.10"',
32-
'numpy>=1.19.3,<2; python_version>="3.6" and platform_system=="Linux" and platform_machine=="aarch64"',
33-
'numpy>=1.21.0,<2; python_version<="3.9" and platform_system=="Darwin" and platform_machine=="arm64"',
34-
'numpy>=1.21.4,<2; python_version>="3.10" and platform_system=="Darwin"',
35-
"numpy>=1.23.5,<2; python_version>='3.11'",
36-
"numpy>=1.26.0,<2; python_version>='3.12'",
27+
"numpy>=1.26.0,<2",
3728
]
3829

3930
python_version = cmaker.CMaker.get_python_version()

0 commit comments

Comments
 (0)