summaryrefslogtreecommitdiff
path: root/dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch')
-rw-r--r--dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch b/dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch
new file mode 100644
index 000000000000..7a5ce5f52bdc
--- /dev/null
+++ b/dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch
@@ -0,0 +1,16 @@
+--- a/aksetup_helper.py
++++ b/aksetup_helper.py
+@@ -43,11 +43,8 @@
+
+
+ def get_numpy_incpath():
+- from imp import find_module
+- # avoid actually importing numpy, it screws up distutils
+- file, pathname, descr = find_module("numpy")
+- from os.path import join
+- return join(pathname, "core", "include")
++ import numpy as np
++ return np.get_include()
+
+
+ class NumpyExtension(Extension):