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 e64d50b commit ad6a14a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aksetup_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +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)
print("NUMPYPATH", pathname)
pathname = dirname(origin)
return join(pathname, "core", "include")


Expand Down

0 comments on commit ad6a14a

Please sign in to comment.