Bug#300834: [xml/sgml-pkgs] Bug#300834: python2.3-libxml2: not purgeing cleanly breaks other programs

Mike Hommey Mike Hommey <mh@glandium.org>, 300834@bugs.debian.org
Tue, 22 Mar 2005 20:01:50 +0100

On Tue, Mar 22, 2005 at 07:14:08AM +0100, Ingo Saitz <ingo@debian.org> wrote:
> Package: python2.3-libxml2
> Version: 2.6.16-3
> Severity: critical
> Justification: breaks unrelated software
> Hash: SHA1
> I installed python2.3-libxml2 as a dependency package and removed it
> again sometime later. I also use straw as a rss reader an suddenly it
> failed to fetch new data after a restart (see below). But straw was
> still working in a clean sid chroot, so I dug...
> It seems, python2.3-libxml2 does not bytecompile its files in
> /usr/lib/python2.3/site-packages on its own, but somehow I got
> bytecompiled files (*.pyc and *.pyo for every *.py file), probably due
> to a python update which recompiled everything. These files were left
> over on the package purge causing straw to hiccup.
> Please read the Debian Python Policy, especially "2.5 Modules
> Bytecompilation" how to correctly bytecompile and clean up:
> http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html#s-bytecompilation

Erf. You know what ? I was considering using dh_python some day, I'm
being pushed here ;)