Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932318Ab0A1UVR (ORCPT ); Thu, 28 Jan 2010 15:21:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932283Ab0A1UVQ (ORCPT ); Thu, 28 Jan 2010 15:21:16 -0500 Received: from mail-iw0-f172.google.com ([209.85.223.172]:63620 "EHLO mail-iw0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297Ab0A1UVO convert rfc822-to-8bit (ORCPT ); Thu, 28 Jan 2010 15:21:14 -0500 MIME-Version: 1.0 X-Originating-IP: [66.187.234.200] In-Reply-To: <2375c9f91001261834l1e267a8bp61633f63b3752f6f@mail.gmail.com> References: <20100126222041.GR4472@redhat.com> <2375c9f91001261834l1e267a8bp61633f63b3752f6f@mail.gmail.com> Date: Thu, 28 Jan 2010 15:21:13 -0500 Message-ID: Subject: Re: [scripts] python: change scripts to use system python instead of env From: Jarod Wilson To: =?ISO-8859-1?Q?Am=E9rico_Wang?= Cc: Don Zickus , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2005 Lines: 51 On Tue, Jan 26, 2010 at 9:34 PM, Am?rico Wang wrote: > On Wed, Jan 27, 2010 at 6:20 AM, Don Zickus wrote: >> Doh. Typo in the To: field >> >> ----- Forwarded message from Don Zickus ----- >> >> Date: Fri, 22 Jan 2010 16:32:10 -0500 >> From: Don Zickus >> To: lkml@vger.kernel.org >> Cc: akpm@linux-foundation.org, tglx@linutronix.de, tony.luck@intel.com, >> ? ? ? ?kmcmartin@redhat.com, Don Zickus >> 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 Wilson jarod@wilsonet.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/