FS#21422 - [pyqt] switch to Python v3

Attached to Project: Arch Linux
Opened by Xavion (Xavion) - Friday, 22 October 2010, 23:45 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 11 January 2011, 01:27 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Now that the 'python' package has switched to the Python v3 branch, I'm wondering when SIP and PyQt will follow suit.

Is there a particular reason that this hasn't happened yet? For example, maybe Python-KDE currently requires Python v2.

I'm trying to coordinate the next releases of my PyQt-based applications and I wanna know if I should use Python v2 or v3.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 11 January 2011, 01:27 GMT
Reason for closing:  Implemented
Additional comments about closing:  python-qt
python-sip
Comment by Xavion (Xavion) - Saturday, 23 October 2010, 00:17 GMT
It looks like the D-Bus Python bindings are slowing down this transition. For the record, a patch was released to make these work with Python v3. See the following thread for more information: https://bugs.freedesktop.org/show_bug.cgi?id=26420
Comment by Ionut Biru (wonder) - Saturday, 23 October 2010, 19:29 GMT
is not that easy to switch pyqt to use python 3
Comment by Xavion (Xavion) - Saturday, 23 October 2010, 23:51 GMT
I don't see what's so hard about it, given that SIP and PyQt are already compatible with Python v3. I just needed to change the instance of 'python2' to 'python3' in the 'sip' and 'pyqt' PKGBUILDs. Both the 'sip' and 'PyQt4' modules were then imported successfully by 'python3'.
Comment by Tom Burdick (bfrog) - Tuesday, 26 October 2010, 21:38 GMT
Would it be possible to make two versions of this package at this point? python-pyqt and python2-pyqt

PyQt claims compatibility with python 3 but lots of things need it with python 2 still and probably will for the foreseeable future.
Comment by Andrea Scarpino (BaSh) - Wednesday, 17 November 2010, 16:47 GMT
The patch for dbus-python does not work (it fails to build)
Comment by Xavion (Xavion) - Thursday, 18 November 2010, 05:58 GMT
I don't think it's going to matter a whole lot. I've upgraded the source code of my three PyQt v4 applications to be compatible with Python v3. I can confirm that PyQt v4 works fine when it's attached to Python v3, without any patches needing to be applied beforehand. Just add a "python-qt" package to 'extra' now and rename the old one to "python2-qt". I don't think you'll receive many complaints.

Loading...