[PyQt] How to compile with PyQt5?

Alan Ezust alan.ezust at gmail.com
Sat Jul 26 18:39:54 BST 2014

I went through exactly the same process because the "SIP Build System"
documentation is totally out of date for PyQt5 and that is the first place
where you see how to create a sample project.

We really need a simple way to create new projects and it needs to be
documented in the PyQt5 manual.

On Fri, Jul 25, 2014 at 2:28 AM, Kovid Goyal <kovid at kovidgoyal.net> wrote:

> On Fri, Jul 25, 2014 at 09:47:26AM +0100, Phil Thompson wrote:
> > On 25/07/2014 4:36 am, Kovid Goyal wrote:
> > >1600 lines? That's crazy. Here's an extract from calibre's build system.
> >
> > 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.
> Then perhaps people asking about how to build on PyQt 5 should be pointed
> to one of these more representative modules. I remember that when I was
> doing the calibre transition to Qt 5 I also came across the advice to
> look at QScintilla, and rather than trying to adapt that beast, I wrote
> my own minimal build logic that does what calibre needs.
> > 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
> > that, if you were supporting PyQt4 and PyQt5, you would have to handle
> which
> > version of pyqtbuilder to import.
> Sounds fine to me. I was just trying to help the OP, since from
> experience, trying to adapt QSintilla's build system is not a task to be
> taken on lightly. Even just having some officially sanctioned method of
> gathering information like runtime paths and compiler flags would be
> helpful. Essentially, something like qmake -query
> Kovid.
> --
> _____________________________________
> Dr. Kovid Goyal
> http://www.kovidgoyal.net
> http://calibre-ebook.com
> _____________________________________
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140726/d405bfcc/attachment.html>

More information about the PyQt mailing list