Content-Length: 293428 | pFad | http://github.com/opencv/opencv-python/commit/aa26990977aa021b7d9559666b5674b5ca76c2ec

44 make it possible to compile from sources against numpy on macOS aarch… · opencv/opencv-python@aa26990 · GitHub
Skip to content

Commit aa26990

Browse files
authored
make it possible to compile from sources against numpy on macOS aarch64 (#475)
1 parent 4262df8 commit aa26990

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = [
33
"setuptools", "wheel", "scikit-build", "cmake", "pip",
44
"numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64'",
55
"numpy==1.19.3; python_version>='3.6' and sys_platform == 'linux' and platform_machine == 'aarch64'",
6+
"numpy==1.20.1; python_version>='3.6' and sys_platform == 'darwin' and platform_machine == 'aarch64'",
67
"numpy==1.14.5; python_version=='3.7' and platform_machine != 'aarch64'",
78
"numpy==1.17.3; python_version=='3.8' and platform_machine != 'aarch64'",
89
"numpy==1.19.3; python_version>='3.9' and platform_machine != 'aarch64'"

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ def main():
3131
if sys.version_info[:2] >= (3, 9):
3232
minimum_supported_numpy = "1.19.3"
3333

34-
# arm64 is a special case
35-
if sys.version_info[:2] >= (3, 6) and platform.machine() == "aarch64":
34+
# linux arm64 is a special case
35+
if sys.platform.startswith("linux") and sys.version_info[:2] >= (3, 6) and platform.machine() == "aarch64":
3636
minimum_supported_numpy = "1.19.3"
3737

38+
# macos arm64 is a special case
39+
if sys.platform == "darwin" and sys.version_info[:2] >= (3, 6) and platform.machine() == "aarch64":
40+
minimum_supported_numpy = "1.20.1"
41+
3842
numpy_version = "numpy>=%s" % minimum_supported_numpy
3943

4044
python_version = cmaker.CMaker.get_python_version()

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/opencv/opencv-python/commit/aa26990977aa021b7d9559666b5674b5ca76c2ec

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy