Skip to content

Commit ae116c2

Browse files
blazewiczdpgeorge
authored andcommitted
docs/Makefile: define and use PYTHON as the interpreter for CPYDIFF
User can override PYTHON executable before running script, gen-cpydiff.py works only with Python3 and most systems register its executable as 'python3'.
1 parent ad81a2e commit ae116c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5+
PYTHON = python3
56
SPHINXOPTS =
67
SPHINXBUILD = sphinx-build
78
PAPER =
@@ -60,7 +61,7 @@ clean:
6061
cpydiff:
6162
@echo "Generating MicroPython Differences."
6263
rm -f $(GENRSTDIR)/*
63-
cd $(CPYDIFFDIR) && python $(CPYDIFF)
64+
cd $(CPYDIFFDIR) && $(PYTHON) $(CPYDIFF)
6465

6566
html: cpydiff
6667
$(SPHINXBUILD) $(FORCE) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

0 commit comments

Comments
 (0)