Public bug reported:

I use dh_python3 in python3 3.2-1.

When building deb package which uses python3 and includes only private
modules, dh_python3 incorrectly inserts prerm-pyclean into the prerm
scripts instead of prerm-py3clean:

============================================================
#!/bin/sh
set -e

# Automatically added by dh_python3:
if which pyclean >/dev/null 2>&1; then
        pyclean -p blender2.5 
else
        dpkg -L blender2.5 | grep \.py$ | while read file
        do
                rm -f "${file}"[co] >/dev/null
        done
fi

# End automatically added section
============================================================

So, when upgrading my package using dh_python3, I got many warnings and
many unnecessary .pyc files remained in my system.

I also tested python3 3.2-1 which was taken from Debian sid, and
confirmed that the bug is still in the upstream latest version.

I have already reported this bug at Debian bug tracker and posted a
patch.

** Affects: python3-defaults (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: python3-defaults (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/760401

Title:
  dh_python3 generates incorrect prerm script which cannot remove .pyc
  files

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to