Am 04.08.2017 um 14:39 schrieb Jussi Pakkanen:
> On Tue, Aug 1, 2017 at 12:56 AM, Michael Biebl <[email protected]> wrote:
> 
>> when purging the meson package, the following files are not removed
>> properly:
>>
>> /usr/share/meson/mesonbuild/wrap/__pycache__/wrap.cpython-35.pyc
> 
> I can not reproduce this. Installing, running and then uninstalling
> Meson leaves no pyc files behind on Debian Sid.

It's reproducible here in a Debian sid chroot.
What I did was:
a/ create a fresh sid chroot
   # debootstrap sid mesonchroot
b/ switch to into the new chroot
   # chroot mesonchroot
c/ install meson
   # apt install -y meson
d/ run meson, so the pyc files are chreated
   # find /usr/share/meson/ -name *.pyc
     <empty>
   # meson --version
   # find /usr/share/meson/ -name *.py
     <lots of files>
e/ remove the package
   # apt purge meson
...
dpkg: warning: while removing meson, directory
'/usr/share/meson/mesonbuild/wrap' not empty so not removed
dpkg: warning: while removing meson, directory
'/usr/share/meson/mesonbuild/modules' not empty so not removed
dpkg: warning: while removing meson, directory
'/usr/share/meson/mesonbuild/dependencies' not empty so not removed


>> It looks like meson does not use the debian python helpers to properly
>> register and unregister the py files on installationa/uninstallation.
> 
> I read through dh_python3's documentation and there seem to be a bunch
> of issues:
> 
> - it states that the package's name must be python3-packagename which
> makes sense for Python libraries that can be imported but wrong for us
> since we are a standalone project that is only implemented in Python
> (which is an implementation detail that should _not_ be exposed in the
> package name)
> - requires installing to the system standard package directories
> which, again, we don't want to do because no-one should import the
> internals of Meson
> - says "call ``dh_python3`` in the `binary-*` target" without telling
> exactly what the target name should be (or even have a link to
> documentation explaining what they are)
> 
> Based on this it would seem that the packaging thing should call
> "dh_python3 /usr/share/meson" in some target and then it might work.
> Unfortunately there is no conclusive documentation to whether this is
> the case or not.
> 

I've CCed the maintainers of dh-python, maybe they can help.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to