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

Bug#585627: hplip: Error with hpmudext module : hp-* dont works

Hello Mark,

On Sun, Jun 13, 2010 at 04:17, Mark Purcell <msp@debian.org> wrote:
> Matthias, What foo should I put in my debian/control file to automatically
> generate the correct depends:

good luck waiting for a reply from him...

> We currently just have:
> XB-Python-Version: ${python:Versions}
> Depends: ${python:Depends}, python-dbus (>= 0.80), python-imaging, python-pexpect, python-notify
> But that doesn't limit the Depends to the python version the package was built with.
> It seems that I could hard code:
> XS-Python-Version: 2.5

that is wrong, unless your package can *only* work with 2.5

> But that would be too much and the package would then have to be manually
> updated every-time you upversion python.

The correct way to handle it is to set XS-P-V to ">= 2.5" (that
declares the package only works with version 2.5 onward) or even to
"all" (that declares the package can use any of the supported version
of Python in Debian) and then build the package for all the supported
versions in debian/rules.

You can call pyversions (with parameters, IIRC -s for all the
supported versions) then loop over those versions and call "python$ver
setup.py build" and then "install" on each of them.

Also, I suggest to use a python helper program, and the debian-python
community suggests python-support, which is reliable and

If you have any other questions, feel free to ask me (or debian-python@l.d.o).

Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Reply to: