<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 25, 2014 at 4:47 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<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"><div class="">On 25/07/2014 4:36 am, Kovid Goyal wrote:<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">
1600 lines? That's crazy. Here's an extract from calibre's build system.<br>
</blockquote>
<br></div>
To add some perspective to this, the amount of code you have to actually write for a more representative extension module than QScintilla (eg. QtDataVisualization) is 80 lines. For that you get a configure.py with a consistent user interface with other PyQt based extension modules, support for cross-compiling to iOS, Android etc etc.<br>

</blockquote><div><br></div><div>That would be awesome if you could share QtDataVisualization's configure.py...</div><div>Cross-compiling is a cool feature, but I'm not sure FakeVim would ever make sense on a mobile device.</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">
I might consider moving the boilerplate to a "pyqtbuilder" module where you would implement a class representing those 80 lines and pass it to a Builder class imported from the module. However that would mean<br>


that, if you were supporting PyQt4 and PyQt5, you would have to handle which version of pyqtbuilder to import</blockquote><div><br></div><div>+1 to a pyqtbuilder</div></div></div></div>