[U-Boot] [PATCH] host-tools: use python2 explicitly for shebang

Simon Glass sjg at chromium.org
Fri Jan 26 15:27:49 UTC 2018


Hi Masahiro,

On 21 January 2018 at 02:34, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> All of these host tools are apparently written for Python2,
> not Python3.
>
> Use 'python2' in the shebang line according to PEP 394
> (https://www.python.org/dev/peps/pep-0394/).
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
> I sent some time before figuring out why Patman does not work
> on my machine.
>
> If 'python' points to python3, Patman does not epit any error
> message, it just stays silent until it consumes all memory
> on the system.
>
>
>  scripts/dtc/pylibfdt/setup.py | 2 +-
>  scripts/mailmapper            | 2 +-
>  test/py/test.py               | 2 +-
>  tools/buildman/buildman.py    | 2 +-
>  tools/dtoc/dtoc.py            | 2 +-
>  tools/microcode-tool.py       | 2 +-
>  tools/patman/patman.py        | 2 +-
>  tools/rkmux.py                | 2 +-
>  8 files changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

I can repeat that problem. There has been some effort to make patman
(in particular) work with python 3. Should we fix the bug? This change
will mask it.

Regards,
Simon


More information about the U-Boot mailing list