File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
from collections import defaultdict
12
12
import fnmatch
13
+ import inspect
13
14
import os
14
- from os .path import join as pjoin , relpath
15
+ from os .path import dirname , join as pjoin , relpath
15
16
from pathlib import Path
16
17
import shutil
17
18
import sys
18
19
19
- import pkg_resources
20
-
21
20
SETUP_DIR = Path (__file__ ).parent .resolve ()
22
21
23
22
@@ -224,7 +223,7 @@ def update_extension(extension, requires_math=True):
224
223
import numpy as np
225
224
226
225
numpy_includes = [np .get_include ()]
227
- extra_incl = pkg_resources . resource_filename ( "numpy" , "core/ include" )
226
+ extra_incl = pjoin ( dirname ( inspect . getfile ( np . core )) , "include" )
228
227
numpy_includes += [extra_incl ]
229
228
numpy_includes = list (set (numpy_includes ))
230
229
numpy_math_libs = {
You can’t perform that action at this time.
0 commit comments