[PATCH 0/1] Let Sphinx store cached bytecode under the output dir

From: Mauro Carvalho Chehab
Date: Thu Apr 24 2025 - 20:09:19 EST


Hi Jon,

I guess we can also apply this one. It works fine for documentation, as
it will store the __pycache__ directory under Documentation/output,
and should properly honor O=, as this is already handled by the doc
output logic. Also, make cleandocs will remove the entire output dir,
including the bytecode files and dir.

So, this should work fine for us.

IMO, we still need a generic solution to cover the other cases where
we're using PYTHONDONTWRITEBYTECODE=1, but, as on Sphinx
there are 634 temp files, this could hopefully speedup doc builds
a little bit on slower machines and/or when one is just rebuilding
docs with small changes.

Mauro Carvalho Chehab (1):
docs: Makefile: store __pycache__ at the output directory

Documentation/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.49.0