Skip to content

ENH: Check Python Version.

Andrew Maclean requested to merge amaclean/vtk:check_for_py25 into master

In the function GetVTKClasses, this line will fail in Python 2.5 or earlier:

    vtkClasses = inspect.getmembers(
                    vtk, inspect.isclass and not inspect.isabstract)

The reason is that inspect does not have the attribute isabstract.

Accordingly the code has been modified to check the Python Version, returning a message if the version is too old.

Merge request reports