Re: linux-next: Tree for Sep 19 (make htmldocs problem)

Mauro Carvalho Chehab
2025-09-21T22:06:29Z

Em Sun, 21 Sep 2025 15:56:37 -0600
Jonathan Corbet <corbet@lwn.net> escreveu:

> Mauro Carvalho Chehab <mchehab+huawei@kernel.org> writes:
>
> >> I have no idea why
> >> they felt the need to employ it for Sphinx, but they did, so we need to
> >> work with that kind of configuration. Meaning, really, I think we have
> >> to just invoke sphinx-build directly rather than trying to control which
> >> version of Python it may ultimately get.
> >
> > True, but if we ignore PYTHON3 env completely, this will break on
> > other setups where sphinx is installed with a different python version
> > (with includes OpenSUSE non-thumbleweed).
>
> How do those setups work prior to your changes? We didn't have to do
> that dance before, right? What makes it necessary now?

We didn't, but in recent past minimal python version was below 3.6.

I added this after a feedback during patch review that it should be
using PYTHON3 env var to better support Leap and other distros with
native python version < 3.7 and would require a pyhton version override
to build docs.

Thanks,
Mauro