[Kde-bindings] Review Request 115082: Fix pykdeuic4 when used with newever pyqt versions
Luca Beltrame
lbeltrame at kde.org
Fri Jan 17 19:29:31 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115082/#review47597
-----------------------------------------------------------
I would suggest a version check. This ensure we don't need to bump dependencies and that will make more conservative distros happy. If you can make such a patch, I'll gladly review it.
- Luca Beltrame
On Jan. 17, 2014, 5:51 p.m., Fabian Kosmale wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115082/
> -----------------------------------------------------------
>
> (Updated Jan. 17, 2014, 5:51 p.m.)
>
>
> Review request for KDE Bindings, Luca Beltrame and Simon Edwards.
>
>
> Bugs: 326294
> http://bugs.kde.org/show_bug.cgi?id=326294
>
>
> Repository: pykde4
>
>
> Description
> -------
>
> With recent versions of PyQt (at least 4.10.3), the compileUI's signature has changed from
> def compileUi(self, input_stream, output_stream, from_imports):
> to
> def compileUi(self, input_stream, output_stream, from_imports, resource_suffix):
> As mentioned in the bug report, this prevents pykdeuic4 from working. The attached patch is not a final version, but more a starting point: It just passes an empty string as the last parameter. This will however break with older versions of PyQt as far as I can see. Would catching the TypeError and then calling the version with the empty string be a solution (easier to ask for forgiveness than for permission)? Or is this considered too hackish? Alternatively, one could probably choose a function based on QtCore.PYQT_VERSION_STR. Any other ideas?
>
>
> Diffs
> -----
>
> tools/pykdeuic4/pykdeuic4.py 491985a
>
> Diff: https://git.reviewboard.kde.org/r/115082/diff/
>
>
> Testing
> -------
>
> Our (Chakra Linux's) greeter application, Kapudan, a fork of Pardus's Kaptan which requires pykdeuic4 builds; so does the dummy file attached in the linked bug.
>
>
> Thanks,
>
> Fabian Kosmale
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20140117/fcdde836/attachment.html>
More information about the Kde-bindings
mailing list