[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#373853: dh_python generated wrong substvars



On Fri, 16 Jun 2006, Piotr Ozarowski wrote:
> I have following line in debian/control (source section)
>  XS-Python-Version: >= 2.4
> 
> and in generated *.substvars file:
>  python:Versions=all

Is your package arch: all?

If that's the case, then it's normal. The Python-Version: field in the
*binary* package is there to document if the package needs update to work
with a new python version. That's the only reason why it has been
introduced.

Basically, you have 3 cases:
- the package is arch: all and uses python-support/python-central to make
  it available to all the versions known to work with it
  => we get "all"
  => no update is needed for a new python version
- the package has private modules, and those are byte-compiled for the
  current python version
  => we get "current"
  => no update is needed as the modules are byte-compiled again for the
  new version
- the package contains extensions (and/or public modules not shared, ie
  installed in /usr/lib/python2.X/site-modules) and you get the explicit
  list of versions supported
  => in general we get "2.3, 2.4" but you might as well get "2.3" or "2.4"
  => update is needed if the new version is not listed in the field

You could replace "all" by "all, >= 2.4" but it doesn't bring anything.
This information is already in the Depends field and in the Python-Version
of the source package.

If you agree with this reasoning, feel free to close the bug.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/



Reply to: