-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (34 loc) · 1.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
import os
import sgr
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
try:
import netCDF4
except:
print("Could not import netCDF4, make sure it is installed")
try:
import h5py
except:
print("Could not import hdf5, make sure it is installed")
datadir = os.path.join('sgr','data')
datafiles = [(d, [os.path.join(d,f) for f in files])
for d, folders, files in os.walk(datadir)]
print datafiles
# Source dist
setup(name='sgr',
version= sgr.__version__ + sgr.__release__,
packages=['sgr'],
package_dir={'sgr': 'sgr'},
author='A.I.J.M. van Dijk/J. Schellekens',
author_email='[email protected]/[email protected]',
url='http://not yet',
license="GPL",
scripts=['sgr/sgr_main.py'],
description='Satellite Gauging Reaches',
data_files = datafiles,
)