mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
As usual, no tests, so can't be 100% sure that it works right. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
18 lines
614 B
Diff
18 lines
614 B
Diff
https://src.fedoraproject.org/rpms/python-pyqt6/blob/rawhide/f/py315.patch
|
|
--- a/qpy/QtCore/qpycore_pyqtslot.cpp
|
|
+++ b/qpy/QtCore/qpycore_pyqtslot.cpp
|
|
@@ -24,6 +24,13 @@
|
|
#include "qpycore_pyqtslot.h"
|
|
|
|
|
|
+// PyWeakref_GetObject was removed from headers in Python 3.15 but is still
|
|
+// part of the stable ABI. Declare it here for Python 3.15+ compatibility.
|
|
+#if PY_VERSION_HEX >= 0x030f0000
|
|
+extern "C" PyObject* PyWeakref_GetObject(PyObject *ref);
|
|
+#endif
|
|
+
|
|
+
|
|
// Create the slot for a callable.
|
|
PyQtSlot::PyQtSlot(PyObject *callable, bool callable_is_method,
|
|
const Chimera::Signature *slot_signature)
|