https://github.com/python/cpython/commit/46d96dce63021c5b290508c782001cb9423a1316
commit: 46d96dce63021c5b290508c782001cb9423a1316
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-11-08T10:26:51Z
summary:

[3.13] gh-139741: Make `dist-pdf` docs archive build work for macOS (GH-140837) 
(#141230)

Co-authored-by: Naitree Zhu <[email protected]>

files:
M Doc/Makefile

diff --git a/Doc/Makefile b/Doc/Makefile
index f6f4c721080c42..f16d9cacb1b6fb 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -241,7 +241,8 @@ dist-pdf:
        # as otherwise the full latexmk process is run twice.
        # ($$ is needed to escape the $; 
https://www.gnu.org/software/make/manual/make.html#Basics-of-Variable-References)
        -sed -i 's/: all-$$(FMT)/:/' build/latex/Makefile
-       (cd build/latex; $(MAKE) clean && $(MAKE) --jobs=$$((`nproc`+1)) 
--output-sync LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2)
+       if [ -n "$(filter output-sync,$(value .FEATURES))" ]; then 
OUTPUTSYNC=--output-sync; else OUTPUTSYNC=; fi && \
+       (cd build/latex; $(MAKE) clean && $(MAKE) --jobs=$$((`getconf 
_NPROCESSORS_ONLN`+1)) $$OUTPUTSYNC LATEXMKOPTS='-quiet' all-pdf && $(MAKE) 
FMT=pdf zip bz2)
        cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-a4.zip
        cp build/latex/docs-pdf.tar.bz2 
dist/python-$(DISTVERSION)-docs-pdf-a4.tar.bz2
        @echo "Build finished and archived!"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to