1 Star 1 Fork 0

JoeLee-TQXTC/geoist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.47 KB
一键复制 编辑 原始数据 按行查看 历史
rular099 提交于 2020-06-29 18:31 +08:00 . minimum model constraints in pfmodel_ts
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",
),
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JoeLeeLZM/geoist.git
[email protected]:JoeLeeLZM/geoist.git
JoeLeeLZM
geoist
geoist
master

搜索帮助