Skip to content
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

Docs: Allow setting Python interpreter via command line #6440

Merged
merged 1 commit into from Jul 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/Makefile
Expand Up @@ -2,8 +2,9 @@
#

# You can set these variables from the command line.
PYTHON = python3
SPHINXOPTS =
SPHINXBUILD = python3 -m sphinx.cmd.build
SPHINXBUILD = $(PYTHON) -m sphinx.cmd.build
PAPER =
BUILDDIR = _build

Expand Down Expand Up @@ -42,8 +43,8 @@ clean:
-rm -rf $(BUILDDIR)/*

install-sphinx:
python3 -c "import sphinx" > /dev/null 2>&1 || python3 -m pip install sphinx
python3 -c "import furo" > /dev/null 2>&1 || python3 -m pip install furo
$(PYTHON) -c "import sphinx" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx
$(PYTHON) -c "import furo" > /dev/null 2>&1 || $(PYTHON) -m pip install furo

html:
$(MAKE) install-sphinx
Expand Down Expand Up @@ -179,4 +180,4 @@ livehtml: html
livereload $(BUILDDIR)/html -p 33233

serve:
cd $(BUILDDIR)/html; python3 -m http.server
cd $(BUILDDIR)/html; $(PYTHON) -m http.server