-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
79 lines (62 loc) · 2.01 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
#Required external R libraries
r_libs_require = ['changepoint',
'gstat',
'norm',
'pcaMethods',
'sp']
#Check python version
if sys.version_info.major > 2:
print "Sorry, Python 3 is not yet supported"
sys.exit(1)
#Check for rpy2 and required R libraries
import rpy2.robjects
r = rpy2.robjects.r
for a_rlib in r_libs_require:
r('library(%s)'%a_rlib)
setup(
name='topowx',
version='1.1.0',
packages=find_packages(),
description='TopoWx ("Topography Weather") Project',
long_description='TopoWx is a project for producing high resolution\
gridded climate datasets. Corresponding publication: http://dx.doi.org/10.1002/joc.4127',
url='http://www.ntsg.umt.edu/project/TopoWx',
author='Jared W. Oyler',
author_email='jaredwo@gmail.com',
license='GPL',
classifiers=[
'Development Status :: 5 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific',
'License :: OSI Approved :: GNU General Public License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
keywords='climate interpolation',
package_data={
'twx.db': ['data/*.txt'],
'twx.infill': ['data/*.txt','rpy/*.R'],
'twx.interp': ['rpy/*.R'],
},
install_requires=['fiona',
'gdal',
'matplotlib',
'mpi4py',
'netCDF4',
'numpy',
'pandas',
'pyproj',
'rpy2',
'scipy',
'shapely',
'statsmodels',
'tzwhere',
'xray'
]
)