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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Russell Warren
Docs for installing PyQt5 from source are here:


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:


If you drop the --no-tools from the sip compilation, PyQt5 compilation can proceed since it has the sip.h file.

Thanks,
Russ


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

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

Phil Thompson-5
On 3 Jan 2019, at 8:13 pm, Russell Warren <[hidden email]> 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
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt