diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2025-05-22 16:44:05 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2025-07-04 11:23:21 +0200 |
| commit | 77c37b1937c9500a2af5a1bed2366058de74d1b7 (patch) | |
| tree | c085421bc2d3b11182acd52ce59a98c89ffb31b5 /build_scripts/wheel_files.py | |
| parent | b2ee65edc7000ad7f7e91a319510974a5cd55db0 (diff) | |
Modify headers installation for CMake builds
Previously, the headers are installed as ${CMAKE_INSTALL_PREFIX}/include/cmake_package_name,
where cmake_package_name is the CMake package name, e.g., PySide6. In
the wheels, the headers were included as package_name/include. Since
the level of the include directory is different, this caused issues
when importing the CMake package in a downstream project.
- This change modifies the installation of the headers so that the
CMake install prefix and the wheels are consistent.
- Additionally
- this change adds the libpyside6 headers to the wheels.
- The include headers for libshiboken were shipped with
shiboken6-generator and not with shiboken6, which has the
libshiboken binary.
Change-Id: I96e3280799da169836e24551b906274f5b0fc962
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'build_scripts/wheel_files.py')
| -rw-r--r-- | build_scripts/wheel_files.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_scripts/wheel_files.py b/build_scripts/wheel_files.py index 3b8910a17..d7ccc701f 100644 --- a/build_scripts/wheel_files.py +++ b/build_scripts/wheel_files.py @@ -318,6 +318,10 @@ def module_QtCore() -> ModuleData: data.qtlib.append("libicuuc*") data.qtlib.append("libicuio*") + # add the include folders for libpyside binaries + # this is useful for downstream cmake projects like QtBridges + data.include.append("pyside6/*.h") + return data |
