]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: Makefile: store __pycache__ at the output directory
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 25 Apr 2025 00:08:53 +0000 (08:08 +0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 28 Apr 2025 23:36:43 +0000 (17:36 -0600)
Instead of blocking creation of *.pyc cache, store python
cache under Documentation/output/__pycache__

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <1b9e7f34c1d99a27a8abb308da3221b4663b5693.1745539360.git.mchehab+huawei@kernel.org>

Documentation/Makefile

index 8c1f6a3dfc441bc422876ad347cd6724209c1f8b..59e95ebae786c6abf0cb972c4712ae7c9135957d 100644 (file)
@@ -84,7 +84,7 @@ loop_cmd = $(echo-cmd) $(cmd_$(1)) || exit;
 
 quiet_cmd_sphinx = SPHINX  $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
       cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media $2 && \
-       PYTHONDONTWRITEBYTECODE=1 \
+       PYTHONPYCACHEPREFIX=$(abspath $(BUILDDIR)/__pycache__) \
        BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(src)/$5/$(SPHINX_CONF)) \
        $(PYTHON3) $(srctree)/scripts/jobserver-exec \
        $(CONFIG_SHELL) $(srctree)/Documentation/sphinx/parallel-wrapper.sh \