-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
83 lines (78 loc) · 3.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
80
81
82
83
# -*- coding: utf-8 -*-
"""setup.py: setuptools control."""
from setuptools import setup
from distutils.core import Extension
import inspect
import os
import sys
# Import the version string.
path = os.path.join(os.path.abspath(os.path.dirname(inspect.getfile(
inspect.currentframe()))), 'backtrackbb')
sys.path.insert(0, path)
from version import get_git_version
with open('README.md', 'rb') as f:
long_descr = f.read().decode('utf-8')
ext_modules = []
ext_modules.append(Extension(
'lib_rec_filter',
sources=['backtrackbb/c_libs/lib_rec_filter.c']))
ext_modules.append(Extension(
'lib_rec_rms', sources=['backtrackbb/c_libs/lib_rec_rms.c']))
ext_modules.append(Extension(
'lib_rec_hos', sources=['backtrackbb/c_libs/lib_rec_hos.c']))
ext_modules.append(Extension(
'lib_rec_cc', sources=['backtrackbb/c_libs/lib_rec_cc.c']))
ext_modules.append(Extension(
'lib_map_project',
sources=['backtrackbb/c_libs/map_project/util.c',
'backtrackbb/c_libs/map_project/map_project.c',
'backtrackbb/c_libs/map_project/coord_convert.c']))
ext_modules.append(Extension(
'lib_rosenberger',
sources=['backtrackbb/c_libs/rosenberger/IA_Kdiag.c',
'backtrackbb/c_libs/rosenberger/IA_Ealloc.c',
'backtrackbb/c_libs/rosenberger/IA_R2upd.c',
'backtrackbb/c_libs/rosenberger/rosenberger.c']))
setup(
name='backtrackbb',
packages=[
'backtrackbb',
'backtrackbb.scripts',
'backtrackbb.configobj',
'backtrackbb.nllgrid'
],
include_package_data=True,
entry_points={
'console_scripts': [
'btbb = backtrackbb.scripts.btbb:run',
'mbf_plot = backtrackbb.scripts.mbf_plot:main',
'bt2eventdata = backtrackbb.scripts.bt2eventdata:main',
'group_triggers = backtrackbb.scripts.group_triggers:main',
]
},
version=get_git_version(),
ext_package='backtrackbb.lib',
ext_modules=ext_modules,
description='Multi-band array detection and location of seismic sources',
long_description=long_descr,
author='Natalia Poiata',
author_email='[email protected]',
url='http://backtrackbb.github.io',
license='CeCILL Free Software License Agreement, Version 2.1',
platforms='OS Independent',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: CeCILL Free Software License '
'Agreement, Version 2.1',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics'],
install_requires=['obspy>=1.0.0', 'scipy>=0.17', 'pyproj']
)