-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
57 lines (48 loc) · 1.6 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
"""``pvgeohdf``: An offshoot of PVGeo for HDF5 and netCDF data formats in ParaView
"""
import setuptools
import warnings
import platform
import sys
import os
__version__ = '0.1.0'
with open("README.rst", "r") as f:
long_description = f.read()
# Manage requirements
install_requires=[
'PVGeo>=2.0.4',
'numpy>=1.13',
'scipy>=1.1',
'colour-runner==0.0.5',
'codecov==2.0.15',
'netCDF4>=1.4.1',
]
# 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'])
setuptools.setup(
name="pvgeohdf",
version=__version__,
author="Bane Sullivan",
author_email="[email protected]",
description="An offshoot of PVGeo for HDF5 and netCDF data formats readers in ParaView",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/OpenGeoVis/PVGeo-HDF5",
packages=setuptools.find_packages(),
install_requires=install_requires,
classifiers=(
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: GIS',
'Intended Audience :: Science/Research',
'Natural Language :: English',
),
)