diff options
author | Damien George <damien.p.george@gmail.com> | 2019-01-31 18:22:12 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-12 14:58:15 +1100 |
commit | 5368210e36f1d05efb0ea2c09661ebc80688880b (patch) | |
tree | c22dee2fb89200714a18742baea0bb21a287d28d /py/mkenv.mk | |
parent | 6e30f96b0b0ab14853085e5300d80d7c1a6f67c5 (diff) |
py/mkenv.mk: Change default PYTHON variable from "python" to "python3".
This change makes it so that python3 is required by default to build
MicroPython. Python 2 can be used by specifying make PYTHON=python2.
This comes about due to a recent-ish change to PEP 394 that makes the
python command more optional than before (even with Python 2 installed);
see https://github.com/python/peps/commit/cd59ec03c8ff1e75089d5872520cd0706774b35b#diff-1d22f7bd72cbc900670f058b1107d426
Since the command python is no longer required to be provided by a
distribution we need to use either python2 or python3 as commands. And
python3 seems the obvious choice.
Diffstat (limited to 'py/mkenv.mk')
-rw-r--r-- | py/mkenv.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mkenv.mk b/py/mkenv.mk index 2c9c86a7a..87e92ec6f 100644 --- a/py/mkenv.mk +++ b/py/mkenv.mk @@ -42,7 +42,7 @@ ECHO = @echo CP = cp MKDIR = mkdir SED = sed -PYTHON = python +PYTHON = python3 AS = $(CROSS_COMPILE)as CC = $(CROSS_COMPILE)gcc |