mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Docs: Allow setting Python interpreter via command line
This commit is contained in:
parent
1f74704d6f
commit
03df65e77b
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user