File: 50_fix_python-modules_path.patch

package info (click to toggle)
vtk9 9.5.2%2Bdfsg3-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 205,984 kB
  • sloc: cpp: 2,336,570; ansic: 327,116; python: 111,200; yacc: 4,104; java: 3,977; sh: 3,032; xml: 2,771; perl: 2,189; lex: 1,787; makefile: 181; javascript: 165; objc: 153; tcl: 59
file content (30 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Fix path for the installation of python modules
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2020-11-06

Index: vtk9/CMake/vtkModuleWrapPython.cmake
===================================================================
--- vtk9.orig/CMake/vtkModuleWrapPython.cmake	2026-01-30 11:52:31.237391653 +0100
+++ vtk9/CMake/vtkModuleWrapPython.cmake	2026-01-30 11:52:31.229391608 +0100
@@ -82,7 +82,7 @@
         "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: vtk9/Utilities/Python/CMakeLists.txt
===================================================================
--- vtk9.orig/Utilities/Python/CMakeLists.txt	2026-01-30 11:52:31.237391653 +0100
+++ vtk9/Utilities/Python/CMakeLists.txt	2026-01-30 11:52:31.231129038 +0100
@@ -54,7 +54,7 @@
     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 ()