Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c46279

Browse files
author
xconverge
committed
Fix for docs/Makefile hard-codes usage of "python" ipython#8857
1 parent 8063ec1 commit 3c46279

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SPHINXBUILD = sphinx-build
77
PAPER =
88
SRCDIR = source
99
BUILDDIR = build
10+
PYTHON = python
1011

1112
# Internal variables.
1213
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -71,19 +72,19 @@ html html_noapi:
7172
automagic: source/interactive/magics-generated.txt
7273

7374
source/interactive/magics-generated.txt: autogen_magics.py
74-
python autogen_magics.py
75+
$(PYTHON) autogen_magics.py
7576
@echo "Created docs for line & cell magics"
7677

7778
autoconfig: source/config/options/generated
7879

7980
source/config/options/generated:
80-
python autogen_config.py
81+
$(PYTHON) autogen_config.py
8182
@echo "Created docs for config options"
8283

8384
api: source/api/generated/gen.txt
8485

8586
source/api/generated/gen.txt:
86-
python autogen_api.py
87+
$(PYTHON) autogen_api.py
8788
@echo "Build API docs finished."
8889

8990
pickle:
@@ -141,7 +142,7 @@ gh-pages: clean html
141142
# if VERSION is unspecified, it will be dev
142143
# For releases, VERSION should be just the major version,
143144
# e.g. VERSION=2 make gh-pages
144-
python gh-pages.py $(VERSION)
145+
$(PYTHON) gh-pages.py $(VERSION)
145146

146147
texinfo:
147148
mkdir -p $(BUILDDIR)/texinfo

0 commit comments

Comments
 (0)