@@ -17,22 +17,24 @@ def main():
17
17
CI_BUILD = os .environ .get ("CI_BUILD" , "False" )
18
18
is_CI_build = True if CI_BUILD == "1" else False
19
19
cmake_source_dir = "opencv"
20
- minimum_supported_numpy = "1.13.1 "
20
+ minimum_supported_numpy = "1.13.3 "
21
21
build_contrib = get_build_env_var_by_name ("contrib" )
22
22
build_headless = get_build_env_var_by_name ("headless" )
23
23
build_java = "ON" if get_build_env_var_by_name ("java" ) else "OFF"
24
24
25
25
if sys .version_info [:2 ] >= (3 , 6 ):
26
26
minimum_supported_numpy = "1.13.3"
27
- if sys .version_info [:2 ] >= (3 , 6 ) and platform .machine () == "aarch64" :
28
- minimum_supported_numpy = "1.19.0"
29
27
if sys .version_info [:2 ] >= (3 , 7 ):
30
28
minimum_supported_numpy = "1.14.5"
31
29
if sys .version_info [:2 ] >= (3 , 8 ):
32
30
minimum_supported_numpy = "1.17.3"
33
31
if sys .version_info [:2 ] >= (3 , 9 ):
34
32
minimum_supported_numpy = "1.19.3"
35
33
34
+ # arm64 is a special case
35
+ if sys .version_info [:2 ] >= (3 , 6 ) and platform .machine () == "aarch64" :
36
+ minimum_supported_numpy = "1.19.3"
37
+
36
38
numpy_version = "numpy>=%s" % minimum_supported_numpy
37
39
38
40
python_version = cmaker .CMaker .get_python_version ()
0 commit comments