Skip to content

Commit 6c2f0b2

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: Makefile: store __pycache__ at the output directory
Instead of blocking creation of *.pyc cache, store python cache under Documentation/output/__pycache__ Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Message-ID: <1b9e7f34c1d99a27a8abb308da3221b4663b5693.1745539360.git.mchehab+huawei@kernel.org>
1 parent e3b42e9 commit 6c2f0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ loop_cmd = $(echo-cmd) $(cmd_$(1)) || exit;
8484

8585
quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
8686
cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media $2 && \
87-
PYTHONDONTWRITEBYTECODE=1 \
87+
PYTHONPYCACHEPREFIX=$(abspath $(BUILDDIR)/__pycache__) \
8888
BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(src)/$5/$(SPHINX_CONF)) \
8989
$(PYTHON3) $(srctree)/scripts/jobserver-exec \
9090
$(CONFIG_SHELL) $(srctree)/Documentation/sphinx/parallel-wrapper.sh \

0 commit comments

Comments
 (0)