forked from gem/oq-hazardlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
83 lines (72 loc) · 3.11 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
# The Hazard Library
# Copyright (C) 2012 GEM Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
hazardlib includes modules for modeling seismic sources (point, area and fault),
earthquake ruptures, temporal (e.g. Poissonian) and magnitude occurrence
models (e.g. Gutenberg-Richter), magnitude/area scaling relationships,
ground motion and intensity prediction equations (i.e. GMPEs and IPEs).
Eventually it will offer a number of calculators for hazard curves,
stochastic event sets, ground motion fields and disaggregation histograms.
hazardlib aims at becoming an open and comprehensive tool for seismic hazard
analysis. The GEM Foundation (http://www.globalquakemodel.org/) supports
the development of the library by adding the most recent methodologies
adopted by the seismological/seismic hazard communities. Comments,
suggestions and criticisms from the community are always very welcome.
Copyright (C) 2012 GEM Foundation.
"""
from setuptools import setup, find_packages, Extension
import numpy
version = "0.10.0"
url = "http://github.com/gem/oq-hazardlib"
geoutils_speedups = Extension('openquake.hazardlib.geo._utils_speedups',
sources=['speedups/geoutilsmodule.c'],
extra_compile_args=['-Wall', '-O2'])
geodetic_speedups = Extension('openquake.hazardlib.geo._geodetic_speedups',
sources=['speedups/geodeticmodule.c'],
extra_compile_args=['-Wall', '-O2'])
include_dirs = [numpy.get_include()]
setup(
name='openquake.hazardlib',
version=version,
description="hazardlib is a library for performing seismic hazard analysis",
long_description=__doc__,
url=url,
packages=find_packages(exclude=['tests', 'tests.*']),
install_requires=[
'numpy',
'scipy',
'shapely'
],
ext_modules=[geodetic_speedups, geoutils_speedups],
include_dirs=include_dirs,
scripts=['tests/gsim/check_gsim.py'],
maintainer='GEM',
maintainer_email='[email protected]',
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering',
),
keywords="seismic hazard",
license="GNU AGPL v3",
platforms=["any"],
namespace_packages=['openquake'],
zip_safe=False,
)