[PyQt] Adding custom sip module to pyqtdeploy

Phil Thompson phil at riverbankcomputing.com
Mon Mar 20 23:44:51 GMT 2017


On 20 Mar 2017, at 10:14 pm, Patrick Stinson <patrickkidd at gmail.com> wrote:
> 
> The sip docs still point to pyqtconfig which seems to have been removed in PyQt5. I checked out configure.py from QScintilla for a current example and got a little lost in the TargetConfig class.

You only need to modify the ModuleConfiguration class, the rest is generic. The configure.py from PyQtPurchasing is probably the simplest.

> How does one achieve the following with sip and PyQt5?
> 
> # Create the Makefile.  The QtGuiModuleMakefile class provided by the                                                              
> # pyqtconfig module takes care of all the extra preprocessor, compiler and                                                         
> # linker flags needed by the Qt library.                                                                                           
> makefile = pyqtconfig.QtGuiModuleMakefile(
>    configuration=config,
>    build_file=build_file,
>    installs=installs
> )

The new and old build systems are completely different - there is no equivalent.

Phil


More information about the PyQt mailing list