From ddba57da09f67bec29a2d7640f0542bf35147018 Mon Sep 17 00:00:00 2001 From: Anton Gladky Date: Thu, 23 Jan 2025 08:49:29 +0100 Subject: [PATCH] Fix path for the installation of python modules Last-Update: 2020-11-06 Gbp-Pq: Name 50_fix_python-modules_path.patch --- CMake/vtkModuleWrapPython.cmake | 2 +- Utilities/Python/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/vtkModuleWrapPython.cmake b/CMake/vtkModuleWrapPython.cmake index 0d457bff..5ea12013 100644 --- a/CMake/vtkModuleWrapPython.cmake +++ b/CMake/vtkModuleWrapPython.cmake @@ -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) diff --git a/Utilities/Python/CMakeLists.txt b/Utilities/Python/CMakeLists.txt index 34036d8b..b80774ec 100644 --- a/Utilities/Python/CMakeLists.txt +++ b/Utilities/Python/CMakeLists.txt @@ -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 () -- 2.30.2