Skip to content

Commit

Permalink
updating spec file for vtk 9.4
Browse files Browse the repository at this point in the history
 - possibly not fixed for vtk 9.4, but I think it's ok...hard to test
  • Loading branch information
SteveDoyle2 committed Jan 14, 2025
1 parent c84ffe1 commit 141971c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev/pyNastranGUI.spec
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,18 @@ vtk_imports_all = [ # 9.3
'vtkmodules.vtkRenderingVolume', 'vtkmodules.vtkRenderingVolumeAMR', 'vtkmodules.vtkRenderingVolumeOpenGL2',
'vtkmodules.vtkRenderingVtkJS', 'vtkmodules.vtkTestingRendering', 'vtkmodules.vtkViewsContext2D',
'vtkmodules.vtkViewsCore', 'vtkmodules.vtkViewsInfovis', 'vtkmodules.vtkWebCore', 'vtkmodules.vtkWebGLExporter',
# tested - 9.4.1
# Unable to find a valid OpenGL 3.2 or later implementation
'vtkmodules.util.data_model', 'vtkmodules.util.execution_model',
]

import vtk
vtk_version_str = vtk.VTK_VERSION
print(f'vtk_version_str = {vtk.VTK_VERSION!r}') # '9.3.1'

if vtk_version_str >= '9.4.0':
raise RuntimeError('use vtk<9.4')

# can we get rid of scipy.optimize?
hiddenimports = [
#'vtk', 'vtk.vtkCommonPythonSIP', 'vtk.vtkFilteringPythonSIP',
Expand Down

0 comments on commit 141971c

Please sign in to comment.