Fix path for the installation of python modules
authorAnton Gladky <gladk@debian.org>
Thu, 23 Jan 2025 07:49:29 +0000 (08:49 +0100)
committerBastian Germann <bage@debian.org>
Thu, 23 Jan 2025 07:49:29 +0000 (08:49 +0100)
Last-Update: 2020-11-06

Gbp-Pq: Name 50_fix_python-modules_path.patch

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

index 0d457bff71eb4cc16f252c7cdf665dbb0d95199e..5ea12013c48fbc613765d2b63fd3889f57bf1191 100644 (file)
@@ -78,7 +78,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 34036d8b1995f1038fff1657e4307fe5d6b0d078..b80774ec500ee02edd52a28dab35e1b746aa24b9 100644 (file)
@@ -61,7 +61,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 ()