diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-08-02 23:57:09 +0200 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-12-03 20:10:46 +0000 |
| commit | 92ee56f805e79d1889aa1f5be158ce062ed4aa7d (patch) | |
| tree | b2cdc3497f132f708687d1cafe007cae5f98abb7 /examples/utils/pyside_config.py | |
| parent | 94c66538eaf58d8b5bdb9a03eb11dd6bad83d466 (diff) | |
build: use posix_prefix to get installation path
On Debian, Python 3.10 introduced some changes to the scheme
in the system, defaulting to 'posix_local' instead of the 'posix_user'
which was previously used, and is currently used in other Linux
distributions.
For example, these values got changed from (posix_user):
data = '/usr'
platlib = '/usr/lib/python3.10/site-packages'
purelib = '/usr/lib/python3.10/site-packages'
to (posix_local):
data = '/usr/local'
platlib = '/usr/lib/python3.10/dist-packages'
purelib = '/usr/lib/python3.10/dist-packages'
This change forces the usage of the 'posix_user' scheme.
Fixes: PYSIDE-2003
Pick-to: 6.8
Change-Id: Ice0ca9adc37c2652f5ef6ce9e0aec0f2f324206b
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/utils/pyside_config.py')
| -rw-r--r-- | examples/utils/pyside_config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/utils/pyside_config.py b/examples/utils/pyside_config.py index 40885dfdb..c4bb873ee 100644 --- a/examples/utils/pyside_config.py +++ b/examples/utils/pyside_config.py @@ -203,7 +203,10 @@ def python_version(): def get_python_include_path(): - return sysconfig.get_path('include') + if sys.platform == 'win32': + return sysconfig.get_path('include') + else: + return sysconfig.get_path('include', scheme="posix_prefix") def python_link_flags_qmake(): |
