Python version indication

Tim Michelsen timmichelsen at gmx-topmail.de
Sun Nov 29 23:44:45 GMT 2009


Dear fellow packagers,
I need some advice on packaging python packages.

I have two packages:

1. package
 	The upstream author defines:

Python_ 2.4 or later.
   Please note that Python_ 3 is not supported yet.

	Therefore, I pu the minimum python version in my control file:

    XS-Python-Version: >= 2.4

2. package

The upstream author defines:

Requirements
            Python 2.x (x>=5)
            PyQt4 4.x (x>=3 ; recommended x>=4)
            QScintilla2 2.x (x>=1) (PyQt4 extension)

Therefore, I pu the minimum python version in my control file:

XS-Python-Version: >=2.5

I am on Ubuntu Karmic.
When installing the package generated with
dpkg-buildpackage -us -uc
the system also installes the modules files for Python 2.5 into:
/usr/lib/python2.5/site-packages/scikits.timeseries-0.91.3-py2.5.egg-info

and
/usr/lib/python2.6/site-packages/scikits.timeseries-0.91.3-py2.6.egg-info

So why are the build module files for Python 2.5 additionally installed?
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?

Thanks in advance,
Timmie




More information about the Ubuntu-motu mailing list