[Python-modules-team] Bug#814622: Bug#814622: Bug#814622: python3-pytest: modifies shipped files: /usr/bin/py.test-3.[45]

Sebastian Ramacher sramacher at debian.org
Sun Feb 14 15:29:02 UTC 2016


On 2016-02-14 10:10:31, Brian May wrote:
> Andreas Beckmann <anbe at debian.org> writes:
> 
> > during a test with piuparts I noticed your package modifies files it
> > ships in /usr. This is so wrong, I'm not even bothered to look
> > up the part of policy this violates ;-P
> 
> From python3-pytest.postinst:
> 
> case "$1" in
>     configure|abort-upgrade|abort-remove|abort-deconfigure)
>         # Just in case, recreate all scripts
>         for version in `py3versions -vi`; do
>             if [ $version ]; then
>                 cp /usr/bin/py.test-3 /usr/bin/py.test-$version
>                 sed -i "s,#! */usr/bin/python3,#!/usr/bin/python$version," "/usr/bin/py.test-$version"
>             fi
>         done
>     ;;
> 
> This should be done at build time in debian/rules, not at install time.

This cannot be done at build time. This would create unnecessary forced
dependencies on all supported Python 3 version. py.test-3.X is created for each
*installed* Python 3 version and updated using rtupdate scripts.

Including py.test-3.X in the package is the bug.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160214/f944ecbe/attachment.sig>


More information about the Python-modules-team mailing list