File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99if 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).
1614inc_dirs = []
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-
3426def 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
4334def checkversion (GEOS_dir ):
You can’t perform that action at this time.
0 commit comments