On Fri, 28 Jul 2023 13:41:14 +0300 Jussi Pakkanen <jpakk...@gmail.com>
wrote:
> On Thu, 27 Jul 2023 at 17:45, Simon McVittie <s...@debian.org> wrote:
> 
> > As far as I'm aware, we never want to include .pyc in Debian packages,
> > so I think debhelper's meson build system plugin should be turning this off
> > as a standard setting for all Debian packages (similar to the way it
> > sets --prefix=/usr as a standard setting for all Debian packages).
> >
> > Do the Meson maintainers agree?
> 
> Obviously the defaults should do the correct thing. In fact until
> yesterday that is what I thought the code does not do byte
> compilation. We might even consider changing the default for this as I
> would imagine all distros will hit the same issue.


>From the original implementation, I discussed the topic:

https://github.com/mesonbuild/meson/pull/11530#discussion_r1140204427

My conclusion was that all distros want bytecode, except for Debian,
which doesn't want bytecode. There is one exception that does not want
bytecode but instead of a lintian style "error if you have it" approach,
they have a debhelper style "DTRT and automatically delete it" approach.


I also made the following comment:

"""
I'm a bit surprised that debhelper doesn't help out your .deb by
removing them for you, but whatever...

It's theoretically possible to hardcode Debian yet again and skip this
install script, but only if running inside a package build. Is there
even a way to detect this? No idea. Not an enthusiastic topic anyway.
"""

-- 
Eli Schwartz

Reply via email to