Fix path for the installation of python modules
authorAnton Gladky <gladk@debian.org>
Fri, 21 Jan 2022 20:24:01 +0000 (20:24 +0000)
committerAnton Gladky <gladk@debian.org>
Fri, 21 Jan 2022 20:24:01 +0000 (20:24 +0000)
Last-Update: 2020-11-06

Gbp-Pq: Name 50_fix_python-modules_path.patch

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

index d298bfc1e66939a9b49a668ad048dd92700e4f34..838f55a57fde7c8f1e114e75b2748468389f1466 100644 (file)
@@ -87,7 +87,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 c460378ede9569127b09d263a412e8da6346b307..9db7877b18705f09bda97eb4731783957234aed8 100644 (file)
@@ -85,7 +85,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 ()