https://github.com/python/cpython/commit/9104fc6cdff8513fb22c426da2c629c5832fc331
commit: 9104fc6cdff8513fb22c426da2c629c5832fc331
branch: 3.10
author: Adam Turner <[email protected]>
committer: ambv <[email protected]>
date: 2025-10-31T14:14:36+01:00
summary:

[3.10] gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target 
(GH-139437) (GH-140412)

(cherry picked from commit 0e2cdd313ba5c67c5e2e21d993399b890e687c63)

Co-authored-by: Adam Turner <[email protected]>

files:
M Doc/Makefile

diff --git a/Doc/Makefile b/Doc/Makefile
index 4188f88d046d21..9e72b31ab492a2 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -155,10 +155,20 @@ venv:
                echo "The venv has been created in the $(VENVDIR) directory"; \
        fi
 
+.PHONY: dist-no-html
+dist-no-html: dist-text dist-epub dist-texinfo
+
 dist:
        rm -rf dist
        mkdir -p dist
-
+       $(MAKE) dist-html
+       $(MAKE) dist-text
+       $(MAKE) dist-pdf
+       $(MAKE) dist-epub
+       $(MAKE) dist-texinfo
+
+.PHONY: dist-html
+dist-html:
        # archive the HTML
        make html
        cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
@@ -168,6 +178,8 @@ dist:
        rm -r dist/python-$(DISTVERSION)-docs-html
        rm dist/python-$(DISTVERSION)-docs-html.tar
 
+.PHONY: dist-text
+dist-text:
        # archive the text build
        make text
        cp -pPR build/text dist/python-$(DISTVERSION)-docs-text
@@ -177,6 +189,8 @@ dist:
        rm -r dist/python-$(DISTVERSION)-docs-text
        rm dist/python-$(DISTVERSION)-docs-text.tar
 
+.PHONY: dist-pdf
+dist-pdf:
        # archive the A4 latex
        rm -rf build/latex
        make latex PAPER=a4
@@ -193,11 +207,15 @@ dist:
        cp build/latex/docs-pdf.zip 
dist/python-$(DISTVERSION)-docs-pdf-letter.zip
        cp build/latex/docs-pdf.tar.bz2 
dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
 
+.PHONY: dist-epub
+dist-epub:
        # copy the epub build
        rm -rf build/epub
        make epub
        cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
 
+.PHONY: dist-texinfo
+dist-texinfo:
        # archive the texinfo build
        rm -rf build/texinfo
        make texinfo
@@ -225,11 +243,11 @@ serve:
 
 # for development releases: always build
 autobuild-dev:
-       make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+       make dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
 
 # for quick rebuilds (HTML only)
 autobuild-dev-html:
-       make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+       make dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
 
 # for stable releases: only build if not in pre-release stage (alpha, beta)
 # release candidate downloads are okay, since the stable tree can be in that 
stage

_______________________________________________
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