-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (57 loc) · 2.01 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
"""
Installation file for python pyvista_gui module
"""
import os
import platform
import sys
import warnings
from io import open as io_open
from setuptools import setup
package_name = 'pyvista_gui'
__version__ = None
filepath = os.path.dirname(__file__)
version_file = os.path.join(filepath, package_name, '_version.py')
with io_open(version_file, mode='r') as fd:
exec(fd.read())
# pre-compiled vtk available for python3
install_requires = ['pyvista>=0.22.4',
'PyQt5==5.11.3',
'scooby>=0.2.2',
'matplotlib',
]
# add vtk if not windows and 2.7
py_ver = int(sys.version[0])
if os.name == 'nt' and (py_ver < 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'])
readme_file = os.path.join(filepath, 'README.md')
setup(
name=package_name,
packages=[package_name],
version=__version__,
description='Easier Pythonic interface to VTK',
long_description=io_open(readme_file, encoding="utf-8").read(),
author='PyVista Developers',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Information Analysis',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
url='https://github.com/pyvista/pyvista_gui',
keywords='vtk numpy plotting mesh gui',
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
install_requires=install_requires,
)