/
setup.py
49 lines (43 loc) · 1.32 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
"""``omfvtk``: 3D visualization for the Open Mining Format (omf)
"""
import setuptools
import os
import sys
import platform
import warnings
__version__ = '0.0.6'
with open("README.rst", "r") as f:
long_description = f.read()
# Manage requirements
install_requires = [
'omf>=1.0.0',
'vectormath>=0.2.0',
'vtki>=0.16.0',
'numpy',
'matplotlib',
]
# add vtk if not windows and (not Python 3.x or not x64)
if os.name == 'nt' and (int(sys.version[0]) < 3 or '64' not in platform.architecture()[0]):
warnings.warn('\nYou will need to install VTK manually.' +
' Try using Anaconda. See:\n'
+ 'https://anaconda.org/anaconda/vtk')
else:
install_requires.append('vtk>=8.1.0')
setuptools.setup(
name="omfvtk",
version=__version__,
author="Bane Sullivan",
author_email="info@pvgeo.org",
description="3D visualization for the Open Mining Format (omf)",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/OpenGeoVis/omfvtk",
packages=setuptools.find_packages(),
install_requires=install_requires,
classifiers=(
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
'Natural Language :: English',
),
)