Python version indication

Tim Michelsen timmichelsen at gmx-topmail.de
Mon Nov 30 22:10:43 GMT 2009


Hello,
first, thanks to all answers.


>> So why are the build module files for Python 2.5 additionally installed?
> 
> Because you wrote that this package works on all python version >= 2.5.
> And in Karmic the supported python version are 2.5 and 2.6. So the
> module gets also build for python2.5 (in case someone wants to use it
> with python2.5).
Ah, oki.


>> What do I need to change in my control file in order to get only the
>> Python 2.6 files installed on systems where 2.6 is the default Python
>> version?
> 
> Does it make the package that bigger that you don't want it? Do you have
> a reason for not supporting python2.5?
I want to support all the same Python versions supported by the upstream
authors.
But on Karmic, 2.6 should be given preference whereas on earliere
systems maybe 2.5.

One of my users reported at install:

Setting up python2.5-minimal (2.5.4-1ubuntu6) ...
Linking and byte-compiling packages for runtime python2.5...
/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py:104: Warning:
'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py ...
  File "/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py", line
104
    with open(pane_svg_filename) as svg_file:
            ^
SyntaxError: invalid syntax

Errors were ignored.

Setting up python2.5 (2.5.4-1ubuntu6) ...

Setting up spyderlib (1.0.1-4~ppa9) ...


Any Idea?

Thanks,
Timmie




More information about the Ubuntu-motu mailing list