Skip to content

Commit 3918ad6

Browse files
authored
bpo-36838: Suggest 'make venv' when missing Doc/ tools. (GH-13173)
1 parent 1cc0ee7 commit 3918ad6

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎Doc/Makefile‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,19 @@ build:
4848
@if [ -f ../Misc/NEWS ] ; then \
4949
echo "Using existing Misc/NEWS file"; \
5050
cp ../Misc/NEWS build/NEWS; \
51-
elif [ -d ../Misc/NEWS.d ]; then \
52-
echo "Building NEWS from Misc/NEWS.d with blurb"; \
53-
$(BLURB) merge -f build/NEWS; \
51+
elif $(BLURB) help >/dev/null 2>&1 && $(SPHINXBUILD) --version >/dev/null 2>&1; then \
52+
if [ -d ../Misc/NEWS.d ]; then \
53+
echo "Building NEWS from Misc/NEWS.d with blurb"; \
54+
$(BLURB) merge -f build/NEWS; \
55+
else \
56+
echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
57+
exit 1; \
58+
fi \
5459
else \
55-
echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
60+
echo ""; \
61+
echo "Missing the required blurb or sphinx-build tools."; \
62+
echo "Please run 'make venv' to install local copies."; \
63+
echo ""; \
5664
exit 1; \
5765
fi
5866
$(SPHINXBUILD) $(ALLSPHINXOPTS)

0 commit comments

Comments
 (0)