Skip to content

Commit 44bff55

Browse files
committed
Fix numpy finding in aksetup
1 parent bf39c06 commit 44bff55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aksetup_helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def setup(*args, **kwargs):
4343

4444

4545
def get_numpy_incpath():
46-
from os.path import join, basename
46+
from os.path import join, dirname
4747
from importlib.util import find_spec
4848
origin = find_spec("numpy").origin
4949
if origin is None:
5050
raise RuntimeError("origin of numpy package not found")
5151

52-
pathname = basename(origin)
52+
pathname = dirname(origin)
5353
return join(pathname, "core", "include")
5454

5555

0 commit comments

Comments
 (0)