We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 803b841 commit 9e61b4dCopy full SHA for 9e61b4d
setup.py
@@ -10,14 +10,13 @@
10
11
from collections import defaultdict
12
import fnmatch
13
+import inspect
14
import os
-from os.path import join as pjoin, relpath
15
+from os.path import dirname, join as pjoin, relpath
16
from pathlib import Path
17
import shutil
18
import sys
19
-import pkg_resources
20
-
21
SETUP_DIR = Path(__file__).parent.resolve()
22
23
@@ -224,7 +223,7 @@ def update_extension(extension, requires_math=True):
224
223
import numpy as np
225
226
numpy_includes = [np.get_include()]
227
- extra_incl = pkg_resources.resource_filename("numpy", "core/include")
+ extra_incl = pjoin(dirname(inspect.getfile(np.core)), "include")
228
numpy_includes += [extra_incl]
229
numpy_includes = list(set(numpy_includes))
230
numpy_math_libs = {
0 commit comments