package python-daemon
tags 544391 + upstream confirmed
retitle 544391 Package-specific unit test suite should not be installed
thanks

Ralf Treinen wrote:
> automatic installation tests of packages that share a file and at the
> same time do not conflict by their package dependency relationships has
> detected the following problem:
[…]
> Selecting previously deselected package python-zhpy.
> Unpacking python-zhpy (from .../python-zhpy_1.7.2-1_all.deb) ...
> Selecting previously deselected package python-daemon.
> Unpacking python-daemon (from .../python-daemon_1.4.6-1_all.deb) ...
> dpkg: error processing /var/cache/apt/archives/python-daemon_1.4.6-1_all.deb 
> (--unpack):
>  trying to overwrite `/usr/share/pyshared/tests/__init__.py', which is also 
> in package python-zhpy
[…]
> 
> This is a serious bug as it makes installation fail. Possible
> solutions are to have the two packages conflict, to rename the
> common file in one of the two packages, or to remove the file from
> one package and have this package depend on the other package. File
> diversions or a Replace relation are another possibility.

I think the best solution is for neither package to install the unit
test suite (or, at least, not install it outside a package-specific
directory).

In the ‘python-daemon’ package, this needs to be fixed upstream by
causing the distribution's ‘setup’ to exclude the unit test suite
from installation. The ‘setup.py’ should have the following change:

-    packages=find_packages(),
+    packages=find_packages(exclude=["tests"]),

Something like this is probably the best solution for ‘python-zhpy’ as
well.

-- 
 \        “Always code as if the guy who ends up maintaining your code |
  `\     will be a violent psychopath who knows where you live.” —John |
_o__)                                                         F. Woods |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to