Re: [scripts] python: change scripts to use system python instead of env

From: AmÃrico Wang
Date: Tue Jan 26 2010 - 21:34:23 EST


On Wed, Jan 27, 2010 at 6:20 AM, Don Zickus <dzickus@xxxxxxxxxx> wrote:
> Doh. Typo in the To: field
>
> ----- Forwarded message from Don Zickus <dzickus@xxxxxxxxxx> -----
>
> Date: Fri, 22 Jan 2010 16:32:10 -0500
> From: Don Zickus <dzickus@xxxxxxxxxx>
> To: lkml@xxxxxxxxxxxxxxx
> Cc: akpm@xxxxxxxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, tony.luck@xxxxxxxxx,
> Â Â Â Âkmcmartin@xxxxxxxxxx, Don Zickus <dzickus@xxxxxxxxxx>
> Subject: [scripts] python: change scripts to use system python instead of env
> Message-Id: <1264195930-15815-1-git-send-email-dzickus@xxxxxxxxxx>
>
> Just a small change to a couple of scripts to go from
>
> Â#!/usr/bin/env python
>
> to
>
> Â#!/usr/bin/python
>
> This shouldn't effect anyone, unless they don't install python there.
>
> In preparation for python3, Fedora is doing a big push to change the scripts
> to use the system python. ÂThis allows developers to put the python3 in
> their path without fear of breaking existing scripts.
>
> Now I am pretty sure anyone using python3 for testing purposes will probably
> not run any of the scripts I changed, but Fedora has this automated tool
> that checks for this stuff so I thought I would try to push it upstream.


Hmm, so python3 will be installed in /usr/local/bin?

>
> Signed-off-by: Don Zickus <dzickus@xxxxxxxxxx>
>

Acked-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>


> --
> I don't do enough python to defend this change to much other than it seems
> to make sense.
> ---
> Âarch/ia64/scripts/unwcheck.py Â| Â Â2 +-
> Âscripts/rt-tester/rt-tester.py | Â Â2 +-
> Âscripts/show_delta       |  Â2 +-
> Â3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/ia64/scripts/unwcheck.py b/arch/ia64/scripts/unwcheck.py
> index c278498..2bfd941 100644
> --- a/arch/ia64/scripts/unwcheck.py
> +++ b/arch/ia64/scripts/unwcheck.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/python
> Â#
> Â# Usage: unwcheck.py FILE
> Â#
> diff --git a/scripts/rt-tester/rt-tester.py b/scripts/rt-tester/rt-tester.py
> index 4c79660..44423b4 100644
> --- a/scripts/rt-tester/rt-tester.py
> +++ b/scripts/rt-tester/rt-tester.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/python
> Â#
> Â# rt-mutex tester
> Â#
> diff --git a/scripts/show_delta b/scripts/show_delta
> index 48a706a..17df305 100755
> --- a/scripts/show_delta
> +++ b/scripts/show_delta
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/python
> Â#
> Â# show_deltas: Read list of printk messages instrumented with
> Â# time data, and format with time deltas.
> --
> 1.6.6.83.gc9a2
>
>
> ----- End forwarded message -----
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/