File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -305,13 +305,15 @@ serve:
305305
306306# for development releases: always build
307307.PHONY : autobuild-dev
308+ autobuild-dev : DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py --short)
308309autobuild-dev :
309- $(MAKE ) dist-no-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
310+ $(MAKE ) dist-no-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1' DISTVERSION= $( DISTVERSION )
310311
311312# for HTML-only rebuilds
312313.PHONY : autobuild-dev-html
314+ autobuild-dev-html : DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py --short)
313315autobuild-dev-html :
314- $(MAKE ) dist-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
316+ $(MAKE ) dist-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1' DISTVERSION= $( DISTVERSION )
315317
316318# for stable releases: only build if not in pre-release stage (alpha, beta)
317319# release candidate downloads are okay, since the stable tree can be in that stage
Original file line number Diff line number Diff line change @@ -74,4 +74,8 @@ def get_version_info():
7474
7575
7676if __name__ == "__main__" :
77- print (format_version_info (get_header_version_info ())[0 ])
77+ short_ver , full_ver = format_version_info (get_header_version_info ())
78+ if sys .argv [1 :2 ] == ["--short" ]:
79+ print (short_ver )
80+ else :
81+ print (full_ver )
You can’t perform that action at this time.
0 commit comments