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 7c196bc commit f66e66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aksetup_helper.py
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 f66e66b

Please sign in to comment.