[PyQt] Error in PyQt5 build docs: You can't specify --no-tools when compiling sip

Phil Thompson phil at riverbankcomputing.com
Fri Jan 4 10:06:44 GMT 2019


On 3 Jan 2019, at 8:13 pm, Russell Warren <russ at perspexis.com> wrote:
> 
> Docs for installing PyQt5 from source are here:
> 
> https://pyqt.readthedocs.io/en/latest/installation.html#building-and-installing-from-source
> 
> They explicitly state that sip should be built with "a command line similar to the following":
> 
>   python configure.py --sip-module PyQt5.sip --no-tools
> 
> However, if you specify "--no-tools" it explicitlydoes not install the sip.h file is needed for compiling PyQt5 itself. This is documented here:
> 
> http://pyqt.sourceforge.net/Docs/sip4/installation.html#cmdoption-configure-py-no-tools
> 
> If you drop the --no-tools from the sip compilation, PyQt5 compilation can proceed since it has the sip.h file.

The --no-tools build is supposed to be in addition to a normal SIP build, not a replacement of it (so that any other non-PyQt related sip-based bindings will still work). However it is probably less confusing if I just omit the --no-tools.

Phil


More information about the PyQt mailing list