[PyKDE] Running PyQt3 and PyQt4?

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Thu Mar 9 12:10:45 GMT 2006


On Thu, 9 Mar 2006 10:41:39 +0000
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> To run them side by side you must install PyQt3, SIP and PyQt4 snapshots. 
> Current PyQt3 and SIP snapshots are quite stable - PyQt 3.16 and SIP 4.4 will 
> be released in the next week or so.
> 
I just remind you of this patch:

--- sip-snapshot-20060107/siputils.py.gv        2006-01-08 04:30:40.000000000 +0100
+++ sip-snapshot-20060107/siputils.py   2006-01-08 07:58:51.000000000 +0100
@@ -467,7 +467,13 @@
             if self.config.qt_version >= 0x040000:
                 # This is really just a help for PyQt's configure.py when it is
                 # detecting what Qt modules are available.
-                qtmods = self.config.pyqt_modules[:]
+                qtmods = self.config.pyqt_modules
+                if isinstance(qtmods, list):
+                    # True for PyQt's configure
+                    qtmods = qtmods[:]
+                else:
+                    # True for PyQwt's configure, unless I am really stupid
+                    qtmods = qtmods.split()
                 qtmods.extend(self._qt)

                 for mod in qtmods:


Every time people are installing a PyQwt snapshot, I have to tell them to
apply this patch first.

Gerard




More information about the PyQt mailing list