Christopher Arndt
1871a924c9
py/mkenv.mk: Use $(PYTHON) consistently when calling Python tools.
...
Rationale:
* Calling Python build tool scripts from makefiles should be done
consistently using `python </path/to/script>`, instead of relying on the
correct she-bang line in the script [1] and the executable bit on the
script being set. This is more platform-independent.
* The name/path of the Python executable should always be used via the
makefile variable `PYTHON` set in `py/mkenv.mk`. This way it can be
easily overwritten by the user with `make PYTHON=/path/to/my/python`.
* The Python executable name should be part of the value of the makefile
variable, which stands for the build tool command (e.g. `MAKE_FROZEN` and
`MPY_TOOL`), not part of the command line where it is used. If a Python
tool is substituted by another (non-python) program, no change to the
Makefiles is necessary, except in `py/mkenv.mk`.
* This also solves #3369 and #1616 .
[1] There are systems, where even the assumption that `/usr/bin/env` always
exists, doesn't hold true, for example on Android (where otherwise the unix
port compiles perfectly well).
2017-11-15 11:56:58 +11:00
..
2017-10-19 18:57:26 +11:00
2017-07-31 18:35:40 +10:00
2017-11-15 11:46:49 +11:00
2016-12-09 22:50:58 +11:00
2016-12-09 22:50:58 +11:00
2017-08-23 11:32:27 +10:00
2017-11-15 11:46:49 +11:00
2017-07-31 18:35:40 +10:00
2017-11-15 11:46:49 +11:00
2017-07-31 18:35:40 +10:00
2017-11-15 11:46:49 +11:00
2016-12-09 22:50:58 +11:00
2017-11-15 11:46:49 +11:00
2017-10-05 10:49:44 +11:00
2017-10-10 10:37:38 +11:00
2017-10-04 12:37:50 +11:00
2017-08-15 11:33:43 +10:00
2017-08-17 16:19:35 +10:00
2017-09-12 16:03:52 +10:00
2017-10-04 12:37:50 +11:00
2017-09-12 16:03:52 +10:00
2017-10-04 12:37:50 +11:00
2017-11-01 13:16:16 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-09-13 20:36:06 +10:00
2017-07-31 18:35:40 +10:00
2017-08-15 11:53:36 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2016-12-09 21:23:17 +11:00
2017-11-15 11:46:49 +11:00
2017-10-10 16:27:54 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-21 11:06:32 +03:00
2017-06-09 13:42:13 +10:00
2017-07-04 22:37:41 +10:00
2017-08-31 17:00:14 +10:00
2017-10-04 12:37:50 +11:00
2017-08-31 17:00:14 +10:00
2017-11-15 11:56:58 +11:00
2017-11-15 11:56:58 +11:00
2017-07-31 18:35:40 +10:00
2017-10-11 11:25:20 +11:00
2017-08-30 21:02:00 +10:00
2017-07-31 18:35:40 +10:00
2017-08-30 21:02:00 +10:00
2017-07-31 18:35:40 +10:00
2017-10-10 16:01:04 +11:00
2017-10-04 12:37:50 +11:00
2017-09-01 11:11:09 +10:00
2017-10-04 12:37:50 +11:00
2017-09-26 11:59:11 +10:00
2017-02-22 12:58:11 +11:00
2017-11-12 14:16:54 +02:00
2017-07-24 18:41:24 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 18:07:32 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-13 20:01:57 +11:00
2017-07-18 11:57:39 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-11 18:54:34 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-09-04 23:35:46 +10:00
2017-10-24 22:39:36 +11:00
2017-07-18 11:57:39 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-09-18 00:06:43 +03:00
2017-10-24 22:39:36 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-11-12 14:16:54 +02:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-10-04 17:59:22 +11:00
2017-08-29 13:16:30 +10:00
2017-10-04 12:37:50 +11:00
2017-06-09 17:33:01 +03:00
2017-10-04 12:37:50 +11:00
2017-10-04 12:37:50 +11:00
2017-08-29 13:16:30 +10:00
2017-11-11 00:11:24 +02:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-05 10:49:44 +11:00
2016-11-16 18:13:50 +11:00
2017-09-10 13:54:00 +03:00
2017-11-01 13:16:16 +11:00
2017-11-01 13:16:16 +11:00
2017-09-01 15:22:25 +10:00
2017-07-24 18:43:14 +10:00
2017-03-14 11:52:05 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-07-18 11:57:39 +10:00
2017-10-11 18:54:34 +11:00
2017-10-04 12:37:50 +11:00
2017-10-13 20:01:57 +11:00
2017-10-21 11:06:32 +03:00
2017-03-20 15:20:26 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-10-05 10:49:44 +11:00
2017-07-31 18:35:40 +10:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-07-31 18:35:40 +10:00
2017-10-04 12:37:50 +11:00
2017-08-20 22:02:41 +03:00
2017-09-06 16:43:09 +10:00
2017-09-06 16:43:09 +10:00
2017-10-04 12:37:50 +11:00
2017-10-05 10:49:44 +11:00
2017-09-21 20:29:41 +10:00
2017-09-26 11:59:11 +10:00