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

Re: Making multiple-version Python packages with debhelper?



On Fri, Mar 10, 2006 at 02:17:56PM +0200, Panu Kalliokoski wrote:
> On Tue, Mar 07, 2006 at 02:50:12PM +0100, Florian Ragwitz wrote:
> > > Hello, I was asked to make my python-selecting package support multiple
> > > Python versions.  Does somebody know the proper way to achieve that with
> > > debhelper (using dh_python in some way perhaps?), or a pointer to such
> > > information?
> > Take a look at the [1]rules file for python-bluetooth, prepared by
> > michal@cihar.com.
> > [1] http://files.perldition.org/python-bluetooth.rules
> 
> Okay, I now updated the package to build for multiple versions.  It
> seems that python:Depends is clever enough that debian/control need not
> be updated when the default Python version changes.  The new package is
> available at:
> 
> http://sange.fi/~atehwa/debian/python-selecting_0.92-2.diff.gz
> http://sange.fi/~atehwa/debian/python-selecting_0.92-2.dsc
> http://sange.fi/~atehwa/debian/python-selecting_0.92.orig.tar.gz
You're still shipping /usr/sbin which you probably don't use.  You
should check the contents of the .deb with 

  dpkg-deb -c ../...deb

or if it is installed

  dpkg -L foo

+	-$(PY23) setup.py clean
+	-$(PY24) setup.py clean

This is bad for reasons documented by Branden's lintian bug ("careless
use of make clean").

Justin



Reply to: