mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jarod Wilson <jarod@wilsonet.com>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [scripts] python: change scripts to use system python instead of  env
Date: Thu, 28 Jan 2010 15:21:13 -0500	[thread overview]
Message-ID: <be3a4a1001281221m47d5fae8v55aa18b7de1aedff@mail.gmail.com> (raw)
In-Reply-To: <2375c9f91001261834l1e267a8bp61633f63b3752f6f@mail.gmail.com>

On Tue, Jan 26, 2010 at 9:34 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote:
> On Wed, Jan 27, 2010 at 6:20 AM, Don Zickus <dzickus@redhat.com> wrote:
>> Doh. Typo in the To: field
>>
>> ----- Forwarded message from Don Zickus <dzickus@redhat.com> -----
>>
>> Date: Fri, 22 Jan 2010 16:32:10 -0500
>> From: Don Zickus <dzickus@redhat.com>
>> To: lkml@vger.kernel.org
>> Cc: akpm@linux-foundation.org, tglx@linutronix.de, tony.luck@intel.com,
>>        kmcmartin@redhat.com, Don Zickus <dzickus@redhat.com>
>> Subject: [scripts] python: change scripts to use system python instead of env
>> Message-Id: <1264195930-15815-1-git-send-email-dzickus@redhat.com>
>>
>> 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?

No, it will be /usr/bin/python3, but its possible a user would
configure their environment to have their default python interpreter
be python3, in which case env python would be using /usr/bin/python3
rather than /usr/bin/python, which can lead to things mysteriously
running differently or not running at all.

Acked-by: Jarod Wilson <jarod@redhat.com>

-- 
Jarod Wilson
jarod@wilsonet.com

  reply	other threads:[~2010-01-28 20:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 22:20 Fwd: " Don Zickus
2010-01-27  2:34 ` Américo Wang
2010-01-28 20:21   ` Jarod Wilson [this message]
2010-01-29 11:50     ` Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be3a4a1001281221m47d5fae8v55aa18b7de1aedff@mail.gmail.com \
    --to=jarod@wilsonet.com \
    --cc=dzickus@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®