/
setup.py
executable file
·50 lines (46 loc) · 1.84 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
#!/usr/bin/env python
import os
from distutils.core import setup
version_file = os.path.join('pyvtk','__version__.py')
if 1 or not os.path.exists(version_file): # disable if block for release!
import subprocess
major_version = 0
minor_version = 5
process = subprocess.Popen(["git", "rev-list", "--count", "--first-parent", "HEAD"],
stdout=subprocess.PIPE)
revision_version = int(process.communicate()[0])
__version__='%d.%d.%d'%(major_version,minor_version,revision_version)
f = open(version_file, 'w')
f.write('__version__ = "%s"\n'%(__version__))
f.close()
exec(open(version_file).read())
print("PyVTK Version",__version__)
setup (name = "PyVTK",
version = __version__,
description = "PyVTK - tools for manipulating VTK files in Python",
author = "Pearu Peterson",
author_email = "pearu.peterson@gmail.com",
maintainer = "Pearu Peterson",
maintainer_email = "pearu.peterson@gmail.com",
license = "New BSD",
long_description= """\
PyVTK provides tools for manipulating VTK (Visualization Toolkit)
files in Python:
VtkData - create VTK files from Python / read VTK files to Python.""",
url = "https://github.com/pearu/pyvtk",
packages = ['pyvtk'],
keywords = ['VTK'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
],
platforms = 'All',
install_requires = ['six'],
)