[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: PyQt6 build for debug python build
From: John Ehresman <jpe () wingware ! com>
Date: 2022-04-29 18:50:26
Message-ID: F2035AEC-A5AA-4A5D-A702-7B2467366C9A () wingware ! com
[Download RAW message or body]
I had to make one change to get PyQt6 to build with a debug python build using Python \
3.10 because the limited api is not used.
In sip/QtCore/qbytearray.sip, I changed %BIGetBufferCode for QByteArray to what it \
was in PyQ5 --
%BIGetBufferCode
#if defined(Py_LIMITED_API)
Q_UNUSED(sipSelf);
sipBuffer->bd_buffer = sipCpp->data();
sipBuffer->bd_length = sipCpp->size();
sipBuffer->bd_readonly = 0;
sipRes = 0;
#else
sipRes = PyBuffer_FillInfo(sipBuffer, sipSelf, sipCpp->data(),
sipCpp->size(), 0, sipFlags);
#endif
%End
I suspect I may be one of the few people left using debug python builds, but I do \
find them invaluable when trying to use a C++ debugger.
Thanks,
John=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic