From 44bff554799cb2142fe2a672142cfaed48195276 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 28 Aug 2023 13:19:10 -0500 Subject: [PATCH] Fix numpy finding in aksetup --- aksetup_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aksetup_helper.py b/aksetup_helper.py index 1acc8f6d..8c9bcec5 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -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")