File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5
5
if sys .version_info < (2 , 6 ):
6
6
raise SystemExit ("""matplotlib and the basemap toolkit require Python 2.6 or later.""" )
7
7
8
- from distutils .dist import Distribution
9
- from distutils .util import convert_path
10
- from distutils import ccompiler , sysconfig
8
+ from setuptools .dist import Distribution
11
9
12
10
# Do not require numpy for just querying the package
13
11
# Taken from the netcdf-python setup file (which took it from h5py setup file).
14
12
inc_dirs = []
15
13
if any ('--' + opt in sys .argv for opt in Distribution .display_option_names +
16
14
['help-commands' , 'help' ]) or sys .argv [1 ] == 'egg_info' :
17
- from distutils . core import setup , Extension
15
+ from setuptools import setup , Extension
18
16
else :
19
17
import numpy
20
18
# Use numpy versions if they are available.
You can’t perform that action at this time.
0 commit comments