def vtk_version_changed(zipfile):
    result = True
    if os.path.exists(zipfile):
        import vtk
        vtk_version = vtk.vtkVersion().GetVTKVersion()[:3]
        sys.path.append(zipfile)
        try:
            from tvtk_classes.vtk_version import vtk_build_version
        except ImportError:
            result = True
        else:
            if vtk_version != vtk_build_version:
                result = True
            else:
                result = False
        sys.path.pop()

    return result
Checks the ZIP file's VTK build version versus the current
dataset/ETHPy150Open enthought/mayavi/tvtk/setup.py/vtk_version_changed