forked from igp-gravity/geoist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
87 lines (80 loc) · 2.47 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
84
85
86
import sys
from os.path import join
import setuptools
import versioneer
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy
COMMON_INCLUDE_DIRS = [
'./geoist/magmod',
'./geoist/magmod/include',
join(sys.prefix, 'include'),
]
COMMON_INCLUDE_DIRS.append(numpy.get_include())
with open("README.md", "r") as fh:
long_description = fh.read()
extensions = [
Extension("geoist.pfm._prism",
["geoist/pfm/_prism.pyx"],
include_dirs=[numpy.get_include()]
),
Extension("geoist.inversion._ttime2d",
["geoist/inversion/_ttime2d.pyx"],
include_dirs=[numpy.get_include()]
),
Extension("geoist.inversion._wavefd",
["geoist/inversion/_wavefd.pyx"],
include_dirs=[numpy.get_include()]
),
Extension(
'geoist.magmod._pymm',
sources=[
'geoist/magmod/pymm.c',
],
libraries=[],
library_dirs=[],
include_dirs=COMMON_INCLUDE_DIRS,
),
Extension(
'geoist.magmod._pysunpos',
sources=[
'geoist/magmod/pysunpos.c',
],
libraries=[],
library_dirs=[],
include_dirs=COMMON_INCLUDE_DIRS,
),
Extension(
'geoist.magmod._pytimeconv',
sources=[
'geoist/magmod/pytimeconv.c',
],
libraries=[],
library_dirs=[],
include_dirs=COMMON_INCLUDE_DIRS,
),
]
exts = cythonize(extensions)
install_requires = ["numpy","matplotlib","scipy","h5py","numba","pandas",
"pytest","future","Cython",'statsmodels>=0.9.0',"PyWavelets",
"seaborn","patsy", "appdirs"]
setuptools.setup(
name="geoist",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="IGP-GRAVITY",
author_email="[email protected]",
description="An Open-Source Geophysical Python Library for Geoscience Prototype Research",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/igp-gravity/geoist",
packages=setuptools.find_packages(),
ext_modules=exts,
include_package_data=True,
install_requires=install_requires,
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
)