<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-09 10:03 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvstone@gmail.com" target="_blank">elvstone@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">2015-05-09 6:43 GMT+02:00 V. Armando Sole <span dir="ltr"><<a href="mailto:sole@esrf.fr" target="_blank">sole@esrf.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<span><br>
<br>
On 09.05.2015 00:11, Elvis Stansvik wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>
Hi all,<br>
<br>
I'm considering using SIP for an upcoming project.<br></span>
...<br>
If I want to use regular setuptools to build my extension ...<br>
</blockquote>
<br>
Since it is an upcoming project, have you considered using Cython? Inheritance of C++ classes as Python classes is much better handled by sip but, if you can minimize inheritance at the Python side, Cython offers what you want.<br></blockquote><div><br></div></div></div><div>Yes, we're already using Cython in a couple of places to interface with vendor supplied driver blobs. For this project I was considering SIP though, since it has better support for generating bindings for Qt code AFAICS.</div></div></div></div></blockquote><div><br></div><div>Sorry I misread you here and thought you were talking about CPython's native extension API. We're not using Cython. The rest of what I said still stands though :)</div><div><br></div><div>Elvis</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>I realize I should give a bit more background: We're using Crossbar [1], a WAMP [2] router, to tie together some application components written using Autobahn|Python [3]. A few of those application components are PyQt4 applications, which means we have to use qtreactor [4] to let the Qt event loop drive the Twisted reactor which Autobahn uses. The project I'm talking about would be to, instead of using qtreactor to integrate Twisted's reactor with Qt's event loop, build a minimal WAMP client library on top of the Qt networking C++ classes, and then create Python bindings for this library. That's where SIP comes in. The reason we'd build this client library in C++ and then wrap it, and not Python directly, is that we're considering re-writing some of these GUI application components in C++, so we'd want a Qt C++ WAMP library as well.</div><div><br></div><div>Hope that clears some things :)</div><div><br></div><div>Elvis</div><div><br></div><div>[1] <a href="http://crossbar.io/" target="_blank">http://crossbar.io/</a></div><div>[2] <a href="http://wamp.ws/" target="_blank">http://wamp.ws/</a></div><div>[3] <a href="http://autobahn.ws/python/" target="_blank">http://autobahn.ws/python/</a></div><div>[4] <a href="https://github.com/ghtdak/qtreactor" target="_blank">https://github.com/ghtdak/qtreactor</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Best regards,<br>
<br>
Armando<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>