mirror of
https://github.com/python/cpython.git
synced 2024-11-21 21:09:37 +01:00
Doc: Fix archive filenames for standard builds (#124826)
This commit is contained in:
parent
4129a74a37
commit
91e64be731
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user