Index: VTK-9.0.1/CMakeLists.txt =================================================================== --- VTK-9.0.1.orig/CMakeLists.txt +++ VTK-9.0.1/CMakeLists.txt @@ -48,6 +48,8 @@ include(vtkCMakeBackports) if (VTK_WHEEL_BUILD) include(vtkWheelPreparation) +elseif(VTK_OPENSUSE_PYTHON_BUILD) + include(vtkPythonMetadataPrepare) endif () include(vtkCompilerChecks) @@ -474,7 +476,7 @@ install( # TODO: HeaderTest exclusions for memcheck. -if (VTK_WHEEL_BUILD) +if (VTK_WHEEL_BUILD OR VTK_OPENSUSE_PYTHON_BUILD) include(vtkWheelFinalization) endif () Index: VTK-9.0.1/CMake/vtkPythonMetadataPrepare.cmake =================================================================== --- /dev/null +++ VTK-9.0.1/CMake/vtkPythonMetadataPrepare.cmake @@ -0,0 +1,18 @@ +# copied from vtkWheelPrepare, but without forcing wheel specific options + +configure_file( + "${CMAKE_CURRENT_LIST_DIR}/setup.py.in" + "${CMAKE_BINARY_DIR}/setup.py" + @ONLY) +configure_file( + "${CMAKE_CURRENT_LIST_DIR}/MANIFEST.in.in" + "${CMAKE_BINARY_DIR}/MANIFEST.in" + @ONLY) +configure_file( + "${CMAKE_SOURCE_DIR}/Copyright.txt" + "${CMAKE_BINARY_DIR}/LICENSE" + COPYONLY) +configure_file( + "${CMAKE_SOURCE_DIR}/README.md" + "${CMAKE_BINARY_DIR}/README.md" + COPYONLY)