We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf39c06 commit 44bff55Copy full SHA for 44bff55
1 file changed
aksetup_helper.py
@@ -43,13 +43,13 @@ def setup(*args, **kwargs):
43
44
45
def get_numpy_incpath():
46
- from os.path import join, basename
+ from os.path import join, dirname
47
from importlib.util import find_spec
48
origin = find_spec("numpy").origin
49
if origin is None:
50
raise RuntimeError("origin of numpy package not found")
51
52
- pathname = basename(origin)
+ pathname = dirname(origin)
53
return join(pathname, "core", "include")
54
55
0 commit comments