forked from Loop3D/LoopStructural
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (70 loc) · 2.29 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
#setup cython code
import sys
try:
from setuptools import setup, find_packages
except:
raise RuntimeError("Cannot import setuptools \n"\
"python -m pip install setuptools")
sys.exit(1)
try:
from Cython.Build import cythonize
except:
raise RuntimeError("Cannot import cython \n"\
"python -m pip install cython")
sys.exit(1)
try:
import numpy
except:
raise RuntimeError("Cannot import numpy \n"\
"python -m pip install numpy")
sys.exit(1)
import numpy
import os
import codecs
package_root = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(os.path.join(package_root, "LoopStructural/version.py")) as fp:
exec(fp.read(), version)
version = version["__version__"]
setup(
name="LoopStructural",
install_requires=[
'numpy>=1.18', #need to fix numpy to 1.18 because we build against it
'pandas',
'scipy',
'scikit-image',
'scikit-learn',
'tqdm',
'numba',
'geostatspy',
'statsmodels',
'scikit-fmm'
],
description="Open source 3D structural geology modelling",
long_description=codecs.open("README.md", "r", "utf-8").read(),
author="Lachlan Grose",
author_email="[email protected]",
license=("MIT"),
url="https://loop3d.github.io/LoopStructural/",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"License :: Free for non-commercial use",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
],
version=version,
packages=find_packages(),
ext_modules=cythonize("LoopStructural/interpolators/cython/*.pyx",compiler_directives={"language_level": "3"}),
include_dirs=[numpy.get_include()],
include_package_data=True,
package_data={'LoopStructural':['datasets/data/*.csv','datasets/data/*.txt']},
keywords=['earth sciences','geology', '3-D modelling', 'structural geology', 'uncertainty']
)