summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2024-10-01 09:43:55 (GMT)
committerGitHub <noreply@github.com>2024-10-01 09:43:55 (GMT)
commit91e64be731fe42e6b252b95d79d900251388bfc6 (patch)
treee4bffef2953a2f816c9ddf92914e2d51ce63d50a /Doc
parent4129a74a3772a2fa75a3b8f642f6b4cf18520e0e (diff)
downloadcpython-91e64be731fe42e6b252b95d79d900251388bfc6.zip
cpython-91e64be731fe42e6b252b95d79d900251388bfc6.tar.gz
cpython-91e64be731fe42e6b252b95d79d900251388bfc6.tar.bz2
Doc: Fix archive filenames for standard builds (#124826)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Makefile6
-rw-r--r--Doc/tools/extensions/patchlevel.py6
2 files changed, 9 insertions, 3 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 70ad703..a090ee5 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -305,13 +305,15 @@ serve:
# for development releases: always build
.PHONY: autobuild-dev
+autobuild-dev: DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py --short)
autobuild-dev:
- $(MAKE) dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+ $(MAKE) dist-no-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1' DISTVERSION=$(DISTVERSION)
# for HTML-only rebuilds
.PHONY: autobuild-dev-html
+autobuild-dev-html: DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py --short)
autobuild-dev-html:
- $(MAKE) dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1'
+ $(MAKE) dist-html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1' DISTVERSION=$(DISTVERSION)
# 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
diff --git a/Doc/tools/extensions/patchlevel.py b/Doc/tools/extensions/patchlevel.py
index 53ea1bf..9ccaec3 100644
--- a/Doc/tools/extensions/patchlevel.py
+++ b/Doc/tools/extensions/patchlevel.py
@@ -74,4 +74,8 @@ def get_version_info():
if __name__ == "__main__":
- print(format_version_info(get_header_version_info())[0])
+ short_ver, full_ver = format_version_info(get_header_version_info())
+ if sys.argv[1:2] == ["--short"]:
+ print(short_ver)
+ else:
+ print(full_ver)