[Python-modules-team] Bug#582054: Incorrect value in XS-Python-Version. Should be >= 2.5

Stefano Rivera stefano at rivera.za.net
Mon May 17 22:16:59 UTC 2010


Package: python-traitsbackendqt
Version: 3.3.0-1
Severity: normal
Tags: patch

debian/control contains
XS-Python-Version: >=2.4

But source contains Python 2.5isms:

Setting up python-traitsbackendqt (3.3.0-1) ...
Setting up python-traitsbackendqt (3.3.0-1) ...
Compiling /usr/lib/python2.4/site-packages/enthought/pyface/ui/qt4/python_shell.py ...
  File "/usr/lib/python2.4/site-packages/enthought/pyface/ui/qt4/python_shell.py", line 1247
    finally:
          ^
SyntaxError: invalid syntax

Compiling /usr/lib/python2.4/site-packages/enthought/traits/ui/qt4/list_str_editor.py ...
  File "/usr/lib/python2.4/site-packages/enthought/traits/ui/qt4/list_str_editor.py", line 438
    row = indices[0] if len(indices) == 1 else -1
                      ^
SyntaxError: invalid syntax

Compiling /usr/lib/python2.4/site-packages/enthought/traits/ui/qt4/tabular_editor.py ...
  File "/usr/lib/python2.4/site-packages/enthought/traits/ui/qt4/tabular_editor.py", line 550
    row = rows[0] if len(rows) == 1 else -1
                   ^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (118)
pycentral pkginstall: error byte-compiling files (118)


Thus it fails to install on systems that still have python2.4 installed.

I recommend you either set XS-Python-Version: >= 2.5 in debian/control or
$ echo 2.5- > debian/pyversions

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20100518/a17dd36e/attachment-0001.pgp>


More information about the Python-modules-team mailing list