File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4
4
if major == 2 and minor1 < 4 or major < 2 :
5
5
raise SystemExit ("""matplotlib and the basemap toolkit require Python 2.4 or later.""" )
6
6
7
- from distutils .core import setup , Extension
8
7
from distutils .dist import Distribution
9
8
from distutils .util import convert_path
10
9
from distutils import ccompiler , sysconfig
14
13
inc_dirs = []
15
14
if any ('--' + opt in sys .argv for opt in Distribution .display_option_names +
16
15
['help-commands' , 'help' ]) or sys .argv [1 ] == 'egg_info' :
17
- pass
16
+ from distutils . core import setup , Extension
18
17
else :
19
- # append numpy include dir.
20
18
import numpy
19
+ # Use numpy versions if they are available.
20
+ from numpy .distutils .core import setup , Extension
21
+ # append numpy include dir.
21
22
inc_dirs .append (numpy .get_include ())
22
23
23
24
try :
You can’t perform that action at this time.
0 commit comments