File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 2626 pass
2727 out = open (sys .argv [1 ], 'w' )
2828
29+ """
30+ 3.2, sysconfig
31+ 3.10, sysconfig.get_pathi
32+ 3.10.13 distutils is deprecated.
33+ 3.12, distutils was removed.
34+ """
2935if sys .version_info >= (3 ,10 ,):
3036 from sysconfig import get_config_var , get_path
3137 incdirs = [get_path ("include" )]
3642libdir = get_config_var ('LIBDIR' ) or ''
3743
3844have_np = 'NO'
45+ """
46+ Since numpy 1.18, numpy.get_include() exists.
47+ """
3948try :
40- if sys .version_info >= (3 ,10 ,):
41- from numpy import get_include
42- numpy_dir = [get_include ()]
43- else :
44- from numpy .distutils .misc_util import get_numpy_include_dirs
45- numpy_dir = get_numpy_include_dirs ()
49+ from numpy import get_include
50+ numpy_dir = [get_include ()]
4651 incdirs = numpy_dir + incdirs
4752 have_np = 'YES'
4853except ImportError :
You can’t perform that action at this time.
0 commit comments