File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change 9
9
if sys .version_info < (2 , 6 ):
10
10
raise SystemExit ("""matplotlib and the basemap toolkit require Python 2.6 or later.""" )
11
11
12
- from setuptools .dist import Distribution
13
-
14
12
# Do not require numpy for just querying the package
15
13
# Taken from the netcdf-python setup file (which took it from h5py setup file).
16
14
inc_dirs = []
25
23
inc_dirs .append (numpy .get_include ())
26
24
27
25
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
-
34
26
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 ('#' )]
41
32
42
33
43
34
def checkversion (GEOS_dir ):
You can’t perform that action at this time.
0 commit comments