Commit 3391a22a authored by Shawn Waldon's avatar Shawn Waldon Committed by Kitware Robot
Browse files

Merge topic 'web-python-version-check'

a0229ed6 Update python version logic similar to !1873
734d5be3

 Make the python version required for vtkweb a configure time check
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1870
parents 94442bb4 a0229ed6
......@@ -3,6 +3,17 @@ if(NOT VTK_WRAP_PYTHON)
message(FATAL_ERROR "Web group can NOT work if VTK_WRAP_PYTHON is not ON.")
endif()
# autobahn (a dependency) only supports python 2.7 and 3.3+. Make this a configure error.
if (PYTHON_MAJOR_VERSION EQUAL 3)
if (PYTHON_MINOR_VERSION LESS 3)
message(FATAL_ERROR "Web group cannot work with this Python version, please update to 2.7 or 3.3+")
endif()
else()
if (PYTHON_MINOR_VERSION LESS 7)
message(FATAL_ERROR "Web group cannot work with this Python version, please update to 2.7 or 3.3+")
endif()
endif()
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"
......
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