Package: autopkgtest Version: 5.30 Severity: minor User: [email protected] Usertags: cruft
Hi, I have got old, stale, python3.10 cache files from autopkgtest on my system. I think that simply using some modern DebHelper plugin would ensure that the .pyc files are correctly generated on postinst and correctly removed in post rm. To clean-up the past I suggest a "rm -f /usr/share/autopkgtest/lib/__pycache__/*-cpython-310.pyc" in preinst/postinst. Greetings, $ ls /usr/share/autopkgtest/lib/__pycache__ -l total 108 -rw-r--r-- 1 root root 4276 3 nov 2022 adt_binaries.cpython-310.pyc -rw-r--r-- 1 root root 2940 3 nov 2022 adtlog.cpython-310.pyc -rw-r--r-- 1 root root 40030 3 nov 2022 adt_testbed.cpython-310.pyc -rw-r--r-- 1 root root 12270 3 nov 2022 autopkgtest_args.cpython-310.pyc -rw-r--r-- 1 root root 17628 3 nov 2022 testdesc.cpython-310.pyc -rw-r--r-- 1 root root 21171 3 nov 2022 VirtSubproc.cpython-310.pyc $ py3versions -s python3.11 https://www.debian.org/doc/packaging-manuals/python-policy > 4.7. Modules Byte-Compilation > > If a binary package provides any binary-independent modules (foo.py files), > the corresponding byte-compiled modules (foo.pyc files) > must not ship in the package. > Instead, they should be generated in the package’s post-install script, > and removed in the package’s pre-remove script. -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (501, 'testing'), (450, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.4.0-1-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages autopkgtest depends on: ii apt-utils 2.6.1 ii libdpkg-perl 1.21.22 ii mawk 1.3.4.20230730-1 ii procps 2:4.0.3-1 ii python3 3.11.4-5 ii python3-debian 0.1.49 Versions of packages autopkgtest recommends: pn autodep8 <none> ii fakeroot 1.32.1-1 Versions of packages autopkgtest suggests: pn docker.io <none> pn fakemachine <none> pn lxc <none> pn lxd <none> pn ovmf <none> pn ovmf-ia32 <none> pn podman <none> ii python3-distro-info 1.5 pn qemu-efi-aarch64 <none> pn qemu-efi-arm <none> pn qemu-system <none> pn qemu-utils <none> ii schroot 1.6.13-3+b2 ii util-linux 2.39.1-3 pn vmdb2 <none> pn zerofree <none> -- no debconf information

