]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Doc: Fix archive filenames for standard builds (GH-124826) (#124837)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 1 Oct 2024 09:50:59 +0000 (11:50 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Oct 2024 09:50:59 +0000 (09:50 +0000)
Doc: Fix archive filenames for standard builds (GH-124826)
(cherry picked from commit 91e64be731fe42e6b252b95d79d900251388bfc6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/Makefile
Doc/tools/extensions/patchlevel.py

index 70ad703ac77e8285b8ca919518ed4117d6aeb858..a090ee5ba927054b492c337800a0a192b373f913 100644 (file)
@@ -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
index 53ea1bf47b8fd30afc1114aa7677dda814284543..9ccaec3dd5ce0fd0ddafac47af34e4e1fd845202 100644 (file)
@@ -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)