Control: reassign -1 python3-mesonpy,src:dh-python

On Sat, 22 Jul 2023 at 10:33:11 +0200, Picca Frédéric-Emmanuel wrote:
> I am packaging python-fabio and pyfai whcih use this new build system for 
> python extensions.
> 
> Now blhc complain that the compilation is not verbose.
> So I need to add something like this to abtain a verbose output.
> 
> override_dh_auto_build:
>       PYBUILD_BUILD_ARGS="-Ccompile-args=--verbose" dh_auto_build
> 
> It seems to me that it will be a lot eaysier to have a default verbose output
> instead of modifying each package which use this build system.

I think this might be more appropriate to be done in pybuild than in
meson-python. meson-python has its upstream behaviour (detailed output
only when requested) similar to Meson, but if I patched the meson-python
source package to make verbose output the default, that would affect
*all* builds done on Debian - not just Debian packages, but also users'
local builds.

That would be conceptually similar to patching the upstream parts of
Meson or CMake or any other build system to be verbose by default,
which we also don't do.

dh-python maintainers: would it make sense for pybuild to detect
"[build-system] build-backend = 'mesonpy'" in pyproject.toml, and if found,
make it behave more like what happens in non-Python Meson packages?
(configure with --wrap-mode=nodownload --buildtype=plain etc.,
build with --verbose, and so on)

Another way to achieve this in packages like python-fabio and pyfai
would be to bypass pyproject and meson-python to run Meson directly,
either manually per-package via "export PYBUILD_SYSTEM=meson", or maybe
automatically in pybuild when build-backend = 'mesonpy' is found (but
perhaps that would be too much magic).

    smcv

Reply via email to