[PyQt] SIP_STATIC_MODULE bug?

Phil Thompson phil at riverbankcomputing.com
Mon Mar 30 12:49:47 BST 2009


On Mon, 30 Mar 2009 13:20:53 +0200, Oliver Heyme <olihey at googlemail.com>
wrote:
> Hi,
> 
> I compile my modules with the SIP_STATIC_MODULES flag!
> 
> But I get a lot of errors!
> When I checked the generated sources and it seems like there is a bug
> in the following lines.
> 
> #if defined(SIP_STATIC_MODULE)
> extern "C" void SIP_MODULE_ENTRY()
> #else
> PyMODINIT_FUNC SIP_MODULE_ENTRY()
> #endif
> 
> If SIP_STATIC_MODULE is defined it uses "void" and if not PyMODINIT_FUNC.
> When I change the void to PyMODEINIT_FUNC it works allright.
> 
> Is that a bug or do I need to do something else when using
> SIP_STATIC_MODULES

It's a SIP bug in the Python v3 support - it will be fixed in tonight's
snapshot.

Phil


More information about the PyQt mailing list