mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +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.
|
# You can set these variables from the command line.
|
||||||
|
PYTHON = python3
|
||||||
SPHINXOPTS =
|
SPHINXOPTS =
|
||||||
SPHINXBUILD = python3 -m sphinx.cmd.build
|
SPHINXBUILD = $(PYTHON) -m sphinx.cmd.build
|
||||||
PAPER =
|
PAPER =
|
||||||
BUILDDIR = _build
|
BUILDDIR = _build
|
||||||
|
|
||||||
|
@ -42,8 +43,8 @@ clean:
|
||||||
-rm -rf $(BUILDDIR)/*
|
-rm -rf $(BUILDDIR)/*
|
||||||
|
|
||||||
install-sphinx:
|
install-sphinx:
|
||||||
python3 -c "import sphinx" > /dev/null 2>&1 || python3 -m pip install sphinx
|
$(PYTHON) -c "import sphinx" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx
|
||||||
python3 -c "import furo" > /dev/null 2>&1 || python3 -m pip install furo
|
$(PYTHON) -c "import furo" > /dev/null 2>&1 || $(PYTHON) -m pip install furo
|
||||||
|
|
||||||
html:
|
html:
|
||||||
$(MAKE) install-sphinx
|
$(MAKE) install-sphinx
|
||||||
|
@ -179,4 +180,4 @@ livehtml: html
|
||||||
livereload $(BUILDDIR)/html -p 33233
|
livereload $(BUILDDIR)/html -p 33233
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
cd $(BUILDDIR)/html; python3 -m http.server
|
cd $(BUILDDIR)/html; $(PYTHON) -m http.server
|
||||||
|
|
Loading…
Reference in New Issue
Block a user