Skip to content

Commit 60ed2aa

Browse files
committed
review actions
1 parent 3b15fff commit 60ed2aa

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

setup.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
if sys.version_info < (2, 6):
1010
raise SystemExit("""matplotlib and the basemap toolkit require Python 2.6 or later.""")
1111

12-
from setuptools.dist import Distribution
13-
1412
# Do not require numpy for just querying the package
1513
# Taken from the netcdf-python setup file (which took it from h5py setup file).
1614
inc_dirs = []
@@ -25,19 +23,12 @@
2523
inc_dirs.append(numpy.get_include())
2624

2725

28-
def read(path, encoding='utf-8'):
29-
path = os.path.join(os.path.dirname(__file__), path)
30-
with io.open(path, encoding=encoding) as fp:
31-
return fp.read()
32-
33-
3426
def get_install_requirements(path):
35-
content = read(path)
36-
return [
37-
req
38-
for req in content.split("\n")
39-
if req != '' and not req.startswith('#')
40-
]
27+
path = os.path.join(os.path.dirname(__file__), path)
28+
with io.open(path, encoding='utf-8') as fp:
29+
content = fp.read()
30+
return [req for req in content.split("\n")
31+
if req != '' and not req.startswith('#')]
4132

4233

4334
def checkversion(GEOS_dir):

0 commit comments

Comments
 (0)