Fix path for the installation of python modules
authorAnton Gladky <gladk@debian.org>
Tue, 14 Jul 2026 09:40:34 +0000 (11:40 +0200)
committerDrew Parsons <dparsons@debian.org>
Tue, 14 Jul 2026 09:40:34 +0000 (11:40 +0200)
Last-Update: 2020-11-06

Gbp-Pq: Name 50_fix_python-modules_path.patch

CMake/vtkModuleWrapPython.cmake
Utilities/Python/CMakeLists.txt

index b0707df601c510795785f84530918083a0b88efd..865c75c59091eab738f98a370de7cbd318d00e5e 100644 (file)
@@ -82,7 +82,7 @@ function (vtk_module_python_default_destination var)
         "for Python modules.")
       set(_vtk_python_version_suffix)
     endif ()
-    set(destination "${CMAKE_INSTALL_LIBDIR}/python${_vtk_python_version_suffix}/site-packages")
+    set(destination "lib/python3/dist-packages")
   endif ()
 
   set("${var}" "${destination}" PARENT_SCOPE)
index f7ae2a77b4e5db31e6560869b20527bdb2c2662c..96bf7bd989dafc7c6c500f18692388fd162b573f 100644 (file)
@@ -54,7 +54,7 @@ if (NOT VTK_PYTHON_SITE_PACKAGES_SUFFIX)
     set(VTK_PYTHON_SITE_PACKAGES_SUFFIX "Lib/site-packages")
   else ()
     set(VTK_PYTHON_SITE_PACKAGES_SUFFIX
-      "python${vtk_python_version_pair}/site-packages")
+      "python3/dist-packages")
   endif ()
 endif ()