Skip to content

Let Sphinx store cached bytecode under the output dir

Mauro Carvalho Chehab linux-doc lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1docs: Makefile: store __pycache__ at the output directoryDocumentation/Makefile+1 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.49.0