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 44if major == 2 and minor1 < 4 or major < 2 :
55 raise SystemExit ("""matplotlib and the basemap toolkit require Python 2.4 or later.""" )
66
7- from distutils .core import setup , Extension
87from distutils .dist import Distribution
98from distutils .util import convert_path
109from distutils import ccompiler , sysconfig
1413inc_dirs = []
1514if any ('--' + opt in sys .argv for opt in Distribution .display_option_names +
1615 ['help-commands' , 'help' ]) or sys .argv [1 ] == 'egg_info' :
17- pass
16+ from distutils . core import setup , Extension
1817else :
19- # append numpy include dir.
2018 import numpy
19+ # Use numpy versions if they are available.
20+ from numpy .distutils .core import setup , Extension
21+ # append numpy include dir.
2122 inc_dirs .append (numpy .get_include ())
2223
2324try :
You can’t perform that action at this time.
0 commit comments