-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
33 lines (27 loc) · 999 Bytes
/
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
import os.path
import re
from numpy.distutils.core import setup, Extension
def find_version(*paths):
fname = os.path.join(os.path.dirname(__file__), *paths)
with open(fname) as fp:
code = fp.read()
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", code, re.M)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string.")
VERSION = find_version('pygtide', '__init__.py')
ext = [Extension(name='pygtide.etpred',
sources=['src/etpred.f90'])]
setup(
name='pygtide',
version=VERSION,
packages=['pygtide'],
package_data={'pygtide': ['commdat/*']},
ext_modules=ext,
install_requires=['numpy', 'pandas','requests'],
author='Gabriel C. Rau, Tom Eulenfeld',
author_email='gabriel@hydrogeo.science',
url='https://github.com/hydrogeoscience/pygtide',
description=('A Python module and wrapper for ETERNA PREDICT to compute '
'gravitational tides on Earth'),
)