Files
python-PyQt6/fix-build-without-qtcore.patch
Benjamin Greiner 8d0d48fea6 - Split the package to build the Qt6Pdf bindings as a separate
flavor. This allows to build most of the bindings in SLFO but
  only build the Qt6Pdf bindings (which need qt6-webengine) in
  Backports.
- Add patch to allow building only the Qt6Pdf bindings without
  having to build Qt6Core too:
  * fix-build-without-qtcore.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6?expand=0&rev=41
2025-04-26 10:59:43 +00:00

15 lines
489 B
Diff

Index: pyqt6-6.8.1/project.py
===================================================================
--- pyqt6-6.8.1.orig/project.py
+++ pyqt6-6.8.1/project.py
@@ -180,7 +180,8 @@ del find_qt
'win32': 'Windows',
}
- self.bindings['QtCore'].tags.append(
+ if QtCore in self.bindings:
+ self.bindings['QtCore'].tags.append(
platform_tags_map.get(self.py_platform, 'Linux'))
# Make sure the bindings are buildable.