Skip to content

Commit 7e068a4

Browse files
committed
use setuptools
1 parent e852293 commit 7e068a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
if sys.version_info < (2, 6):
66
raise SystemExit("""matplotlib and the basemap toolkit require Python 2.6 or later.""")
77

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
119

1210
# Do not require numpy for just querying the package
1311
# Taken from the netcdf-python setup file (which took it from h5py setup file).
1412
inc_dirs = []
1513
if any('--' + opt in sys.argv for opt in Distribution.display_option_names +
1614
['help-commands', 'help']) or sys.argv[1] == 'egg_info':
17-
from distutils.core import setup, Extension
15+
from setuptools import setup, Extension
1816
else:
1917
import numpy
2018
# Use numpy versions if they are available.

0 commit comments

Comments
 (0)