summaryrefslogtreecommitdiff
path: root/dev-python/pyopencl/files/pyopencl-2023.1.2_numpy-include-dir.patch
blob: 7a5ce5f52bdc06763633749a1ed44c974bb0017d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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):