<commit_before># Make sure VTK_WRAP_PYTHON is ON otherwise vtk-web can not exist/work
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_VERSION VERSION_LESS 3.3)
    message(FATAL_ERROR "Web group cannot work with this Python version, please update to 2.7 or 3.3+")
  endif()
else()
  if (PYTHON_VERSION VERSION_LESS 2.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"
# package.
vtk_module_python_package(${vtk-module} "vtk/web"
    RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}")<commit_msg>Update python version logic similar to !1873<commit_after># Make sure VTK_WRAP_PYTHON is ON otherwise vtk-web can not exist/work
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"
# package.
vtk_module_python_package(${vtk-module} "vtk/web"
    RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}")
{'fraction_non_alphanumeric': 0.0872974385781495, 'fraction_numerical': 0.01881860951385259, 'mean_word_length': 5.037854889589905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2099899', 'n_tokens_mistral': 699, 'n_tokens_neox': 664, 'n_words': 225}