Re: [PATCH 1/2] scripts: make python shebangs specific about desired version

Masahiro Yamada
2025-03-06T17:29:43Z

On Tue, Feb 11, 2025 at 10:12 AM Uday Shankar <ushankar@purestorage.com> wrote:
>
> The RPM packaging tools like to make sure that all packaged python
> scripts have version-unambiguous shebangs. Be more specific about the
> desired python version in a couple of places to avoid having to disable
> these checks in make rpm-pkg.
>
> Signed-off-by: Uday Shankar <ushankar@purestorage.com>

Applied to linux-kbuild.
Thanks.

> ---
> scripts/show_delta | 2 +-
> scripts/tracing/draw_functrace.py | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/show_delta b/scripts/show_delta
> index 291ad65e30894645205101e3f31f2e38e90e172e..3755b6c6e55704ef08c2483ab44793adab78f76c 100755
> --- a/scripts/show_delta
> +++ b/scripts/show_delta
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python3
> # SPDX-License-Identifier: GPL-2.0-only
> #
> # show_deltas: Read list of printk messages instrumented with
> diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py
> index 42fa8730094166b5883aaa92b0e2c32e0268b120..97594b65f8ce9b1ade7f08b6b95eee6a1383fec7 100755
> --- a/scripts/tracing/draw_functrace.py
> +++ b/scripts/tracing/draw_functrace.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python3
> # SPDX-License-Identifier: GPL-2.0-only
>
> """
>
> --
> 2.34.1
>
>

--
Best Regards
Masahiro Yamada