[PyQt] PyQt5 5.7.1 Bug: debug build on Windows broken
mathias.born at gmx.de
Sun Jan 15 21:44:45 GMT 2017
Still doesn't work for me.
I installed the new SIP snapshot and tried to install the new PyQt snapshot.
There are two problems. The PyQt configure.py does not call sip with the new
"-D" command line option for debug builds. I get the same error message.
But even if I hack configure.py to add "-D", I still get the same error
c:\cpp\python\python-3.6.0\include\object.h(65): fatal error C1189: #error:
Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and
By the way, this is issued in object.h by these pre-processor directives:
#if defined(Py_LIMITED_API) && defined(Py_REF_DEBUG)
#error Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and
From: Phil Thompson [mailto:phil at riverbankcomputing.com]
Sent: Dienstag, 10. Januar 2017 16:32
To: Mathias Born <mathias.born at gmx.de>
Cc: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] PyQt5 5.7.1 Bug: debug build on Windows broken
On 5 Jan 2017, at 8:50 pm, Mathias Born <mathias.born at gmx.de> wrote:
> It looks like the change to the limited Python API broke the
> debug build on Windows.
> I get error messages like:
> c:\cpp\python\python-3.6.0\include\object.h(65): fatal error C1189:
> Py_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and
> That's a severe limitation for every program embedding Python and PyQt5,
> because the debug build of such a program must link to the debug version
> and PyQt5.
Should be fixed in tonight's SIP and PyQt5 snapshots.
Fixes are also needed for other packages (a simple change to configure.py)
but I haven't decided yet whether to make new releases.
More information about the PyQt