Hi Eli (2022.12.24_21:46:13_-0400)
> This patch is non-upstreamable.

For context, this patch is along the same lines as changes you are
making in your refactor, upstream in
https://github.com/mesonbuild/meson/pull/11133

Your refactor goes further and removes distutils use entirely, where
possible. It's still required on older Debian systems, because the
deb_system scheme was patched into distutils but not sysconfig at the
time.

So, I still think we should be landing this patch in Debian, until your
refactor is released, and I haven't cancelled the NMU.

> I must confess however that I am surprised that setuptools is installed
> in your buildd at all -- Meson doesn't use it, and projects using Meson
> most likely don't also need setuptools at the same time. So this should
> be a moot point.
> 
> If setuptools is not installed, it cannot overwrite the stdlib
> distutils. And there's a viable approach to not using distutils by the
> time distutils is removed from the stdlib.

To expand on what Eli is saying here, if meson Conflicted with
python3-setuptools, or exported SETUPTOOLS_USE_DISTUTILS=stdlib, then
this patch would not be required.

However, such a conflict wouldn't be ideal for user systems. And
virtualenvs still come with setuptools by default, so meson probably
needs to be able to coexist with it.

For the export option, I wouldn't want to patch something like that into
our meson, unless we had to. That should be an upstream decision.

I think coexisting with setuptools and setuptools-distutils is the best
way forward.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

Reply via email to