PyQt6 build for debug python build

Phil Thompson phil at riverbankcomputing.com
Sun May 1 11:38:16 BST 2022


On 29/04/2022 19:50, John Ehresman wrote:
> 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.

Fixed.

Thanks,
Phil


More information about the PyQt mailing list