Skip to content

Commit

Permalink
fixing vtk bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Jun 1, 2019
1 parent bc15404 commit b5f6b46
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages.py
Expand Up @@ -107,16 +107,16 @@ def get_package_requirements(is_gui=True, add_vtk_qt=True, python_version=None):
is_travis = 'TRAVIS' in os.environ
is_rtd = 'READTHEDOCS' in os.environ

if is_dev or (is_gui and add_vtk_qt):
try:
import vtk
vtk_version = '.'.join(vtk.VTK_VERSION.split('.'))
all_reqs['vtk'] = vtk_version
if vtk_version < '7.0.0':
print("vtk.VTK_VERSION = %r < '7.0.0'" % vtk.VTK_VERSION)
install_requires.append('vtk >= 7.0.0')
except ImportError:
install_requires.append('vtk >= 7.0.0') # 8.x used
#if is_dev or (is_gui and add_vtk_qt):
#try:
#import vtk
#vtk_version = '.'.join(vtk.VTK_VERSION.split('.'))
#all_reqs['vtk'] = vtk_version
#if vtk_version < '7.0.0':
#print("vtk.VTK_VERSION = %r < '7.0.0'" % vtk.VTK_VERSION)
#install_requires.append('vtk >= 7.0.0')
#except ImportError:
#install_requires.append('vtk >= 7.0.0') # 8.x used

install_requires = []

Expand Down

0 comments on commit b5f6b46

Please sign in to comment.