<div dir="ltr">Just to make sure I'm not completely heading down the rabbit hole here - I see the following on the PyQt5 download page:<div><br></div><div><span style="color:rgb(0,0,0);line-height:20.8px">>> "Before you can build PyQt5 you must have already built and installed </span><a href="https://www.riverbankcomputing.com/software/sip/download" style="margin:0px;color:rgb(65,134,203);text-decoration:none;line-height:20.8px">SIP</a>"<br></div><div><br></div><div>I assume that because I'm not trying to build PyQt5 from source (I'm installing a binary package), there is no requirement to build SIP. If that assumption is wrong, then I'll need to revisit.</div><div><br></div><div>I also note the following from a previous mail on this list:</div><div><i style="color:rgb(0,0,0);white-space:pre-wrap"><br></i></div><div><i style="color:rgb(0,0,0);white-space:pre-wrap">>> sipconfig.py is deprecated and does not support PyQt5</i><br></div><div><i style="color:rgb(0,0,0);white-space:pre-wrap"><br></i></div><div>I guess I have two options here. Either stick with PyQt5 and get a handle on what the build system looks like without using the sipconfig module, or revert to PyQt4 and try re-following the Riverbank tutorials, continuing to use sipconfig.py. As per my original mail, I'm trying to expose an existing C++ API to Python. Some of that API uses classes which inherit from QObject, which is why I thought SIP looked like the best bet to create the bindings. I'm not looking for bang up-to-date bindings to the latest Qt classes though, so it's likely that PyQt4 will be more than enough for my purposes......I'm just slightly reluctant to use a build system which appears to have been superseded.</div><div><br></div><div>Declan.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 6, 2016 at 10:13 AM, Declan Hegarty <span dir="ltr"><<a href="mailto:declan.hegarty@gmail.com" target="_blank">declan.hegarty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I've been looking into using SIP as a way to bind an existing C++ API to Python. I've installed using the PyQt5 binaries (OS is Windows 7), and in that installation I can see sip.exe at the following location:</div><div><br></div><div>\Programs\Python\Python35-32\Lib\site-packages\PyQt5<br></div><div><br></div><div>If I add that to my PATH environment variable and type sip -help in a command prompt I can see the usage hints - so looks like the installation is OK.</div><div><br></div><div>In trying to follow the SIP tutorial "A Simple C++ Example" in the Riverbank reference guide, I hit an issue using the suggested configure.py script which tries to import the module sipconfig. I don't see sipconfig.py anywhere in the installation directory.</div><div><br></div><div>I've seen reference to this issue in previous posts, and the following reply from Phil Thompson:</div><div><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">>> The recommended solution is to use the configure.py from QScintilla (the
>> current snapshot is best) and read the comments. It's been designed to
>> be reused.
>> Phil</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">I've downloaded QScintilla and can see the configure.py script there, but I'm lost as to how to deploy that in the context of the tutorial example mentioned above. Can anybody help?</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal"><br></span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">Many thanks.</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre></div></div>
</blockquote></div><br></div>