-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (66 loc) · 2.5 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
#!/usr/bin/env python
# -*- encoding: utf8 -*-
#import glob
#import inspect
import io
import os
#from setuptools import find_packages
from setuptools import setup
from distutils.core import Extension
import numpy
long_description = """
Source code: https://github.com/aaspip/pyntfa""".strip()
def read(*names, **kwargs):
return io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8")).read()
ntfac_module = Extension('ntfacfun', sources=['pyntfa/src/main.c',
'pyntfa/src/ntfa_alloc.c',
'pyntfa/src/ntfa_blas.c',
'pyntfa/src/ntfa_divnnsc.c',
'pyntfa/src/ntfa_conjgrad.c',
'pyntfa/src/ntfa_weight2.c',
'pyntfa/src/ntfa_decart.c',
'pyntfa/src/ntfa_triangle.c',
'pyntfa/src/ntfa_ntriangle.c',
'pyntfa/src/ntfa_ntrianglen.c' ],
include_dirs=[numpy.get_include()])
setup(
name="pyntfa",
version="0.0.2.0",
license='GNU General Public License, Version 3 (GPLv3)',
description="A python package of non-stationary time-frequency analysis for multi-dimensional multi-channel seismic data",
long_description=long_description,
author="pyntfa developing team",
author_email="chenyk2016@gmail.com",
url="https://github.com/aaspip/pyntfa",
ext_modules=[ntfac_module],
packages=['pyntfa'],
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
keywords=[
"seismology", "earthquake seismology", "exploration seismology", "array seismology", "denoising", "science", "engineering", "structure", "local slope", "filtering"
],
install_requires=[
"numpy", "scipy", "matplotlib", "pynpre"
],
extras_require={
"docs": ["sphinx", "ipython", "runipy"]
}
)