<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 24, 2014 at 11:36 PM, Kovid Goyal <span dir="ltr"><<a href="mailto:kovid@kovidgoyal.net" target="_blank">kovid@kovidgoyal.net</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">1600 lines? That's crazy. Here's an extract from calibre's build system.<br>
</blockquote><div>[snip]</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">
You will find this code in the master and qt5 brnaches of calibre in<br>
setup/build_environment.py and setup/extensions.py<br></blockquote><div><br></div><div>Thanks Kovid!</div><div><br></div><div>hluk added a build script[1] (133 lines total = 97 lines in configure.py[2] + 36 lines in build.sh[3]) that supports both PyQt4 and PyQt5, now the only problem on my system is that I hit a segmentation fault whenever I build/run the test with PyQt5. But that should probably be a separate thread.</div>
<div><br></div><div>Anyway, its short and it builds just fine[4], so maybe it can be a short example for others.</div><div><br></div><div>Cheers,</div><div>Jacob Floyd</div><div><br></div><div>[1] <a href="https://github.com/hluk/FakeVim/issues/5#issuecomment-50162049">https://github.com/hluk/FakeVim/issues/5#issuecomment-50162049</a></div>
<div>[2] <a href="https://github.com/hluk/FakeVim/blob/master/python/configure.py">https://github.com/hluk/FakeVim/blob/master/python/configure.py</a></div><div>[3] <a href="https://github.com/hluk/FakeVim/blob/master/python/build.sh">https://github.com/hluk/FakeVim/blob/master/python/build.sh</a><br>
</div><div>[4] <a href="https://github.com/hluk/FakeVim/issues/5#issuecomment-50212412">https://github.com/hluk/FakeVim/issues/5#issuecomment-50212412</a></div></div></div></div>