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 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.

Reply via email to