Fix path for the installation of python modules
authorAnton Gladky <gladk@debian.org>
Tue, 5 Jan 2021 14:46:48 +0000 (14:46 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 5 Jan 2021 14:46:48 +0000 (14:46 +0000)
Last-Update: 2020-11-06

Gbp-Pq: Name 50_fix_python-modules_path.patch

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

index 4f9bb1ffd21a5ebee46e005de02ca3bad99c81ea..78d4fa5766dfc20abf5bc6bc9b0cd459cd25e616 100644 (file)
@@ -84,7 +84,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 ccfab4126ee4b74b83285a55bbb1167f3901d721..d85d4bc5197404cf6ce08c46a8a6bb7a7e5315b2 100644 (file)
@@ -77,7 +77,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 ()