[PyQt] pyqtconfig now gone

Phil Thompson phil at riverbankcomputing.com
Thu Jul 17 18:12:57 BST 2014


On 16/07/2014 6:57 pm, Jeremy Sanders wrote:
> Hi -
> 
> The introduction configure-ng.py has broken my app on arch linux (and
> presumably other places), because there's no longer a pyqtconfig
> module. This is rather unexpected and bad.
> 
> What's the recommended way to get the missing data that was in
> pyqtconfig? I'm building my PyQt addon modules using distutils. I'd
> rather not add a ton of options that the user has to supply.
> 
> I'd need:
> - SIP include direction
> - SIP executable
> - Qt library directory
> - Qt include directory
> - Whether Qt is built as a framework
> - Other SIP flags
> 
> I can get the Qt library/include information from QLibraryInfo, but
> how should I get the rest? sipconfig can provide the sip include
> directory and executable, but is this going away in sip-5?
> 
> It would be nice if configure-ng.py could write some of this in some
> form to help modules built against PyQt.

Take a look at QScintilla's configure.py (the snapshot has the latest 
version). All of the QScintilla specific parts are isolated in a couple 
of hundred lines of well documented code. The intent is that you just 
cut and paste in your own specific stuff.

Phil


More information about the PyQt mailing list