Skip to content

Commit

Permalink
Fix numpy finding in aksetup
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Aug 28, 2023
1 parent bf39c06 commit 44bff55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aksetup_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def setup(*args, **kwargs):


def get_numpy_incpath():
from os.path import join, basename
from os.path import join, dirname
from importlib.util import find_spec
origin = find_spec("numpy").origin
if origin is None:
raise RuntimeError("origin of numpy package not found")

pathname = basename(origin)
pathname = dirname(origin)
return join(pathname, "core", "include")


Expand Down

0 comments on commit 44bff55

Please sign in to comment.