Commit 63d70ef7 authored by Sebastien Jourdain's avatar Sebastien Jourdain

Gracefully support Python 3 for vtkWeb

parent 15769ec7
......@@ -3,3 +3,4 @@
# creation short of copying the file somewhere.
*.pyc
.ExternalData*
.DS_Store
vtk_module(vtkParaViewWebPython
DEPENDS
AutobahnPython
EXCLUDE_FROM_WRAPPING
TEST_LABELS
PARAVIEW
......
include(vtkModuleMacrosPython)
# The RELATIVE make vtk_module_python_package() preserve the vtk/module package
# structure when building/installing. Otherwise, we'd just get the "web"
# package.
vtk_module_python_package(${vtk-module} "paraview/web"
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}")
vtk_module(vtkParaViewWebPython2
DEPENDS
AutobahnPython
EXCLUDE_FROM_WRAPPING
TEST_LABELS
PARAVIEW
)
vtk_module(vtkParaViewWeb
DEPENDS
set(PVW_DEPENDS
vtkWebCore
vtkWebPython
vtkWebGLExporter
vtkParaViewWebCore
vtkParaViewWebPython
)
if(VTK_PYTHON_VERSION EQUAL 2)
list(APPEND PVW_DEPENDS vtkWebPython2 vtkParaViewWebPython2)
endif()
vtk_module(vtkParaViewWeb
DEPENDS
${PVW_DEPENDS}
EXCLUDE_FROM_WRAPPING
TEST_LABELS
PARAVIEW
......
......@@ -44,8 +44,8 @@ set(_vtkpy_modules
${CMAKE_BINARY_DIR}/VTK/Wrapping/Python/vtk_compile_complete
vtkpython_pyc
)
if (TARGET vtkWebPython)
list(APPEND _vtkpy_modules vtkWebPython)
if (TARGET vtkWebPythonCommon)
list(APPEND _vtkpy_modules vtkWebPythonCommon)
endif()
#------------------------------------------------------------------------------
......
{
"name" : "paraview",
"version" : "4.3.1",
"version" : "5.3",
"description" : "Data analysis and visualization framework for large data.",
"author" : "Kitware Inc.",
"repository" : {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment