8000 bpo-31036: Allow sphinx and blurb to be found automatically by ned-deily · Pull Request #3440 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-31036: Allow sphinx and blurb to be found automatically #3440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 8, 2017
Next Next commit
Make the directory for the venv be configurable
  • Loading branch information
brettcannon authored and ned-deily committed Sep 7, 2017
commit e488b82976509e44a25ab2b7bfa91dcee2f52cbc
9 changes: 5 additions & 4 deletions Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# You can set these variables from the command line.
PYTHON = python3
VENVDIR = env
SPHINXBUILD = sphinx-build
BLURB = $(PYTHON) -m blurb
PAPER =
Expand Down Expand Up @@ -118,11 +119,11 @@ htmlview: html
$(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')"

clean:
-rm -rf build/* venv/*
-rm -rf build/* $(VENVDIR)/*

venv:
$(PYTHON) -m venv venv
./venv/bin/python3 -m pip install -U Sphinx blurb
$(PYTHON) -m venv $(VENVDIR)
./$(VENVDIR)/bin/python3 -m pip install -U Sphinx

dist:
rm -rf dist
Expand Down Expand Up @@ -168,7 +169,7 @@ dist:
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub

check:
$(PYTHON) tools/rstlint.py -i tools -i venv -i README.rst
$(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst

serve:
../Tools/scripts/serve.py build/html
Expand Down
0