How to use MetaSIP to auto-generate .sip files?

Phil Thompson phil at riverbankcomputing.com
Tue Mar 14 10:15:29 GMT 2023


On 14/03/2023 08:57, alex4814 wrote:
> Hi,
> 
> Background
> I've got various class that derives QWidget, and needs to generate
> Python Binding for those
> customized widgets.
> As far as I know, _*.sip_ file is hand-written and whenever the API of
> c++ side changes, it also
> needs to get updated which is error-prone.
> 
> Idea
> I checked the source code (sip files) of PyQt5, and found that the
> header says
> 
>     // .sip generated by MetaSIP
> 
> It make sense that these sip files are generated by "MetaSIP" rather
> than hand written.
> 
> Problem
> However, I couldn't find MetaSIP. Is it removed or made private for
> internal use?
> 
> How could I use it to speed up Python binding generation.

MetaSIP is an internal tool.

Phil


More information about the PyQt mailing list