[PyQt] Compiling commercial version of PyQt5 5.3.2

Phil Thompson phil at riverbankcomputing.com
Thu Dec 18 16:44:50 GMT 2014


On 18/12/2014 3:41 pm, Gianluca Romanin wrote:
> Hi all,
> 
> my company buyed a commercial license of PyQt5 and I need to compile it 
> for
> Windows platform.
> I can't find an exhaustive tutorial or document for compilation of 
> PyQt5 on
> Win.
> It is not clear to me what version of the compile support software I 
> need:
> 
> - Visual Studio: version? Can I use the express edition?

Yes.

> As far as I know Python is build with VS2010, I have to use VS2010 too 
> or I
> can use a newer version?

2010 is recommended in order to avoid possible C++ stdlib 
incompatibilities.

> - Qt 5.3: can I use the precompiled from the website? I intend to
> use Qt with LGPL license.

Yes.

> I can suppose the following procedure:
> 
> - install Visual Studio version X
> - install Qt 5.3 precompiled (or compile it)
> - unzip sip, compile and install with pyqt-commercial.sip file 
> somewhere

Run configure.py in order to generate the Makefiles. pyqt-commercial.sip 
isn't needed to build sip.

> - unzip PyQt5, compile and install with pyqt-commercial.sip file 
> somewhere

Again, run configure.py in order to generate the Makefiles.

Phil


More information about the PyQt mailing list