aboutsummaryrefslogtreecommitdiff
path: root/python/python3-opencv/sync_with_sci-build-4.5.5.64.diff
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2024-08-20 09:24:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-20 10:35:54 +0700
commit500a32456f78e6d959cad0fa4168d705bc9e046b (patch)
treefd63e6fc6853d13d8bfd67e6e80b5ac70799c1d4 /python/python3-opencv/sync_with_sci-build-4.5.5.64.diff
parent9a1426ea225be015f903f738f3c87c8586c30615 (diff)
python/python3-opencv: Added (Python3 binding for OpenCV).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-opencv/sync_with_sci-build-4.5.5.64.diff')
-rw-r--r--python/python3-opencv/sync_with_sci-build-4.5.5.64.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/python/python3-opencv/sync_with_sci-build-4.5.5.64.diff b/python/python3-opencv/sync_with_sci-build-4.5.5.64.diff
new file mode 100644
index 0000000000..5c9788aee5
--- /dev/null
+++ b/python/python3-opencv/sync_with_sci-build-4.5.5.64.diff
@@ -0,0 +1,25 @@
+--- setup.py.orig 2022-03-04 16:47:38.000000000 +1000
++++ setup.py 2024-08-16 19:58:40.508399337 +1000
+@@ -23,13 +23,6 @@
+ build_java = "ON" if get_build_env_var_by_name("java") else "OFF"
+
+ install_requires = [
+- 'numpy>=1.13.3; python_version<"3.7"',
+- '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.2; python_version>="3.10"',
+- 'numpy>=1.19.3; python_version>="3.6" and platform_system=="Linux" and platform_machine=="aarch64"',
+- 'numpy>=1.21.2; python_version>="3.6" and platform_system=="Darwin" and platform_machine=="arm64"',
+ ]
+
+ python_version = cmaker.CMaker.get_python_version()
+@@ -451,7 +444,7 @@
+ data_files,
+ # To get around a check that prepends source dir to paths and breaks package detection code.
+ cmake_source_dir="",
+- cmake_install_dir=cmake_install_reldir,
++ _cmake_install_dir=cmake_install_reldir,
+ )
+
+