Skip to content

Commit

Permalink
review actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 28, 2018
1 parent 3b15fff commit 60ed2aa
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
if sys.version_info < (2, 6):
raise SystemExit("""matplotlib and the basemap toolkit require Python 2.6 or later.""")

from setuptools.dist import Distribution

# Do not require numpy for just querying the package
# Taken from the netcdf-python setup file (which took it from h5py setup file).
inc_dirs = []
Expand All @@ -25,19 +23,12 @@
inc_dirs.append(numpy.get_include())


def read(path, encoding='utf-8'):
path = os.path.join(os.path.dirname(__file__), path)
with io.open(path, encoding=encoding) as fp:
return fp.read()


def get_install_requirements(path):
content = read(path)
return [
req
for req in content.split("\n")
if req != '' and not req.startswith('#')
]
path = os.path.join(os.path.dirname(__file__), path)
with io.open(path, encoding='utf-8') as fp:
content = fp.read()
return [req for req in content.split("\n")
if req != '' and not req.startswith('#')]


def checkversion(GEOS_dir):
Expand Down

0 comments on commit 60ed2aa

Please sign in to comment.