File: 0010-Fix-python-module-paths-in-CMake.patch

package info (click to toggle)
pyside6 6.8.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 45,424 kB
  • sloc: python: 201,635; cpp: 87,447; xml: 18,629; javascript: 1,182; ansic: 178; sh: 163; makefile: 87
file content (28 lines) | stat: -rw-r--r-- 1,284 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
From: Stuart Prescott <stuart@debian.org>
Date: Tue, 18 Feb 2025 00:50:57 +1100
Subject: Fix python module paths in CMake

---
 sources/shiboken6/cmake/ShibokenHelpers.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
index 9c47770..fa61aed 100644
--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
+++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
@@ -125,13 +125,13 @@ macro(shiboken_internal_set_python_site_packages)
                 if sys.platform == 'win32':
                     lib_path = sysconfig.get_path('purelib')
                 else:
-                    lib_path = sysconfig.get_path('purelib', scheme='posix_prefix')
+                    lib_path = sysconfig.get_path('purelib', scheme='deb_system')
 
                 # /home/qt/dev/env
                 if sys.platform == 'win32':
                     data_path = sysconfig.get_path('data')
                 else:
-                    data_path = sysconfig.get_path('data', scheme='posix_prefix')
+                    data_path = sysconfig.get_path('data', scheme='deb_system')
 
                 # /lib/python3.9/site-packages
                 rel_path = lib_path.replace(data_path, '')