scripts: switch some more scripts explicitly to Python 3
Subsystems (4)
PATCH 1/1 scripts: switch some more scripts explicitly to Python 3
For the same reason as commit 51839e29cb59 ("scripts: switch explicitly to Python 3"), switch some more scripts, which I tested and confirmed working on Python 3.
---
scripts/clang-tools/gen_compile_commands.py | 2 +- scripts/clang-tools/run-clang-tools.py | 2 +- scripts/spdxcheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
scripts/clang-tools/gen_compile_commands.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2018
scripts/clang-tools/run-clang-tools.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2020
scripts/spdxcheck.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright Thomas Gleixner <[email protected]>
Signature · 1 line
2.27.0
Quoted 5 lines · Masahiro Yamada
For the same reason as commit
51839e29cb59("scripts: switch explicitly to Python 3"), switch some more scripts, which I tested and confirmed working on Python 3.Signed-off-by Masahiro Yamada <[email protected]>
Quoted 40 lines
---
scripts/clang-tools/gen_compile_commands.py | 2 +- scripts/clang-tools/run-clang-tools.py | 2 +- scripts/spdxcheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)scripts/clang-tools/gen_compile_commands.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2018scripts/clang-tools/run-clang-tools.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2020scripts/spdxcheck.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright Thomas Gleixner <[email protected]>Signature · 1 line
2.27.0
Nick Desaulniers
reviewerQuoted 6 lines · Masahiro Yamada
For the same reason as commit
51839e29cb59("scripts: switch explicitly to Python 3"), switch some more scripts, which I tested and confirmed working on Python 3.Signed-off-by Masahiro Yamada <[email protected]>
Thanks for the patch. It's time to move on from Python 2.
It looks like there's already a patch in -next for scripts/spdxcheck.py. ("spdxcheck.py: Use Python 3") by Bert Vermeulen.
https://lore.kernel.org/r/[email protected]
What about:scripts/tracing/draw_functrace.pyscripts/show_deltascripts/jobserver-exec
Or do those need additional source level changes?
Quoted 40 lines
---
scripts/clang-tools/gen_compile_commands.py | 2 +- scripts/clang-tools/run-clang-tools.py | 2 +- scripts/spdxcheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)scripts/clang-tools/gen_compile_commands.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2018scripts/clang-tools/run-clang-tools.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2020scripts/spdxcheck.py +1
-2@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright Thomas Gleixner <[email protected]> --2.27.0
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 7 lines · Nick Desaulniers
Quoted 5 lines · Masahiro Yamada
For the same reason as commit
51839e29cb59("scripts: switch explicitly to Python 3"), switch some more scripts, which I tested and confirmed working on Python 3.
Quoted 7 lines
Quoted 1 line
Signed-off-by Masahiro Yamada <[email protected]>Thanks for the patch. It's time to move on from Python 2.
It looks like there's already a patch in -next for
scripts/spdxcheck.py. ("spdxcheck.py: Use Python 3") by Bert Vermeulen.
https://lore.kernel.org/r/[email protected]
OK, I dropped the spdxcheck.py change in v2.
Quoted 6 lines
What about:
scripts/tracing/draw_functrace.pyscripts/show_deltascripts/jobserver-execOr do those need additional source level changes?
I touched jobserver-exec in this patch:
https://patchwork.kernel.org/project/linux-kbuild/patch/[email protected]/
I have not tested draw_functrac.py or show_delta.
Quoted 45 lines
Quoted 38 lines
---
scripts/clang-tools/gen_compile_commands.py | 2 +- scripts/clang-tools/run-clang-tools.py | 2 +- scripts/spdxcheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)scripts/clang-tools/gen_compile_commands.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2018scripts/clang-tools/run-clang-tools.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2020scripts/spdxcheck.py +1
-2@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright Thomas Gleixner <[email protected]> --Quoted 2 lines
2.27.0
--
Thanks,
~Nick Desaulniers
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 29 lines · Masahiro Yamada
Quoted 7 lines · Nick Desaulniers
Quoted 5 lines · Masahiro Yamada
For the same reason as commit
51839e29cb59("scripts: switch explicitly to Python 3"), switch some more scripts, which I tested and confirmed working on Python 3.Quoted 7 lines
Quoted 1 line
Signed-off-by Masahiro Yamada <[email protected]>Thanks for the patch. It's time to move on from Python 2.
It looks like there's already a patch in -next for
scripts/spdxcheck.py. ("spdxcheck.py: Use Python 3") by Bert Vermeulen.
https://lore.kernel.org/r/[email protected]OK, I dropped the
spdxcheck.pychange in v2.Quoted 6 lines
What about:
scripts/tracing/draw_functrace.pyscripts/show_deltascripts/jobserver-execOr do those need additional source level changes?
Quoted 7 lines
I touched jobserver-exec in this patch:
https://patchwork.kernel.org/project/linux-kbuild/patch/[email protected]/
I have not tested
draw_functrac.pyorshow_delta.
As Debian/testing - upcoming bullseye release - has moved to python3.9 (3.9.1-3) as default I am interested in the kbuild transition to python3.
Is it possible to have a Git branch in kbuild.git especially for this transition?
Honestly; I lost a bit the track of all kbuild/python3 patches.
Thanks.
- Sedat -
Quoted 56 lines
Quoted 37 lines
Quoted 37 lines
---
scripts/clang-tools/gen_compile_commands.py | 2 +- scripts/clang-tools/run-clang-tools.py | 2 +- scripts/spdxcheck.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)scripts/clang-tools/gen_compile_commands.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2018scripts/clang-tools/run-clang-tools.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # # Copyright (C) Google LLC, 2020scripts/spdxcheck.py +1
-1@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright Thomas Gleixner <[email protected]>Quoted 8 lines
Quoted 3 lines
--
2.27.0--
Thanks,
~Nick Desaulniers--
Best Regards
Masahiro Yamada--
You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAK7LNATSna9f8cd5Lm%3Dzx2vfJzk%3DWUnAUkA8V593O304zTx%3DvQ%40mail.gmail.com.