From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org, Michael Haggerty <mhagger@alum.mit.edu>
Subject: Re: [PATCH] Standardize python shebangs
Date: Wed, 07 May 2014 20:06:39 +0200 [thread overview]
Message-ID: <vpqy4ydpiog.fsf@anie.imag.fr> (raw)
In-Reply-To: <1399456987-24156-1-git-send-email-felipe.contreras@gmail.com> (Felipe Contreras's message of "Wed, 7 May 2014 05:03:07 -0500")
Felipe Contreras <felipe.contreras@gmail.com> writes:
> It's better if all our scripts use the same '/usr/bin/env python'.
Why?
Using python2 for git_multimail.py is a deliberate decision:
https://github.com/mhagger/git-multimail/pull/2
(also, contrib/hooks/multimail/README says:
"The git-multimail project itself is currently hosted on GitHub:
https://github.com/mhagger/git-multimail
We use the GitHub issue tracker to keep track of bugs and feature
requests, and GitHub pull requests to exchange patches (though, if you
prefer, you can send patches via the Git mailing list with cc to me).
Please sign off your patches as per the Git project practice."
)
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
> contrib/hooks/multimail/README | 6 +++---
> contrib/hooks/multimail/git_multimail.py | 2 +-
> contrib/hooks/multimail/migrate-mailhook-config | 2 +-
> contrib/hooks/multimail/post-receive | 2 +-
> contrib/svn-fe/svnrdump_sim.py | 2 +-
> 5 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/contrib/hooks/multimail/README b/contrib/hooks/multimail/README
> index 477d65f..cf0bcb8 100644
> --- a/contrib/hooks/multimail/README
> +++ b/contrib/hooks/multimail/README
> @@ -76,10 +76,10 @@ Requirements
> The example scripts invoke Python using the following shebang line
> (following PEP 394 [1]):
>
> - #! /usr/bin/env python2
> + #! /usr/bin/env python
>
> - If your system's Python2 interpreter is not in your PATH or is not
> - called "python2", you can change the lines accordingly. Or you can
> + If your system's Python interpreter is not in your PATH or is not
> + called "python", you can change the lines accordingly. Or you can
> invoke the Python interpreter explicitly, for example via a tiny
> shell script like
>
> diff --git a/contrib/hooks/multimail/git_multimail.py b/contrib/hooks/multimail/git_multimail.py
> index 8b58ed6..f6dcdc6 100755
> --- a/contrib/hooks/multimail/git_multimail.py
> +++ b/contrib/hooks/multimail/git_multimail.py
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python2
> +#! /usr/bin/env python
>
> # Copyright (c) 2012-2014 Michael Haggerty and others
> # Derived from contrib/hooks/post-receive-email, which is
> diff --git a/contrib/hooks/multimail/migrate-mailhook-config b/contrib/hooks/multimail/migrate-mailhook-config
> index 04eeaac..fba0b90 100755
> --- a/contrib/hooks/multimail/migrate-mailhook-config
> +++ b/contrib/hooks/multimail/migrate-mailhook-config
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python2
> +#! /usr/bin/env python
>
> """Migrate a post-receive-email configuration to be usable with git_multimail.py.
>
> diff --git a/contrib/hooks/multimail/post-receive b/contrib/hooks/multimail/post-receive
> index 4d46828..4f2cf9d 100755
> --- a/contrib/hooks/multimail/post-receive
> +++ b/contrib/hooks/multimail/post-receive
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python2
> +#! /usr/bin/env python
>
> """Example post-receive hook based on git-multimail.
>
> diff --git a/contrib/svn-fe/svnrdump_sim.py b/contrib/svn-fe/svnrdump_sim.py
> index 4e78a1c..bf20819 100755
> --- a/contrib/svn-fe/svnrdump_sim.py
> +++ b/contrib/svn-fe/svnrdump_sim.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
> """
> Simulates svnrdump by replaying an existing dump from a file, taking care
> of the specified revision range.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
next prev parent reply other threads:[~2014-05-07 18:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 10:03 [PATCH] Standardize python shebangs Felipe Contreras
2014-05-07 10:27 ` Johan Herland
2014-05-07 11:11 ` Felipe Contreras
2014-05-07 12:03 ` James Denholm
2014-05-07 12:28 ` Johan Herland
2014-05-07 18:06 ` Matthieu Moy [this message]
2014-05-07 19:06 ` Felipe Contreras
2014-05-07 20:23 ` Matthieu Moy
2014-05-07 20:40 ` Felipe Contreras
2014-05-07 20:57 ` Matthieu Moy
2014-05-07 22:19 ` James Denholm
2014-05-08 11:48 ` Matthieu Moy
2014-05-08 12:20 ` Johan Herland
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=vpqy4ydpiog.fsf@anie.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=mhagger@alum.mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).