File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -305,13 +305,15 @@ serve:
305
305
306
306
# for development releases: always build
307
307
.PHONY : autobuild-dev
308
+ autobuild-dev-html : DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py --short)
308
309
autobuild-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 )
310
311
311
312
# for HTML-only rebuilds
312
313
.PHONY : autobuild-dev-html
314
+ autobuild-dev-html : DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py --short)
313
315
autobuild-dev-html :
314
- $(MAKE ) dist-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
316
+ $(MAKE ) dist-html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1' DISTVERSION= $( DISTVERSION )
315
317
316
318
# for stable releases: only build if not in pre-release stage (alpha, beta)
317
319
# 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():
74
74
75
75
76
76
if __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