<filename>setup.py
"""
Installation file for python vtkInterface module
"""
from setuptools import setup
from io import open as io_open
import os
import sys
import warnings

package_name = 'vtkInterface'

__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 = ['numpy',
                    'imageio']

# add vtk if not windows and 2.7
if os.name == 'nt' and int(sys.version[0]) >= 0:
    warnings.warn('Will need to install VTK manually')
else:
    install_requires.append(['vtk'])

setup(
    name=package_name,
    packages=[package_name, 'vtkInterface.tests', 'vtkInterface.examples'],
    version=__version__,
    description='Easier Pythonic interface to VTK',
    long_description=open('README.rst').read(),
    author='<NAME>',
    author_email='<EMAIL>',
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    url='https://github.com/akaszynski/vtkInterface',
    keywords='vtk numpy plotting mesh',
    package_data={'vtkInterface.examples': ['airplane.ply', 'ant.ply',
                                            'hexbeam.vtk', 'sphere.ply']},
    install_requires=install_requires,
)

<filename>setup.py
"""
Installation file for python vtkInterface module
"""
from setuptools import setup
from io import open as io_open
import os
import sys
import warnings

package_name = 'vtkInterface'

__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 = ['numpy',
                    'imageio']

# add vtk if not windows and 2.7
if os.name == 'nt' and int(sys.version[0]) >= 0:
    warnings.warn('Will need to install VTK manually')
else:
    install_requires.append(['vtk'])

setup(
    name=package_name,
    packages=[package_name, 'vtkInterface.tests', 'vtkInterface.examples'],
    version=__version__,
    description='Easier Pythonic interface to VTK',
    long_description=open('README.rst').read(),
    author='<NAME>',
    author_email='<EMAIL>',
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    url='https://github.com/akaszynski/vtkInterface',
    keywords='vtk numpy plotting mesh',
    package_data={'vtkInterface.examples': ['airplane.ply', 'ant.ply',
                                            'hexbeam.vtk', 'sphere.ply']},
    install_requires=install_requires,
)

Installation file for python vtkInterface module # pre-compiled vtk available for python3 # add vtk if not windows and 2.7