git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Standardize python shebangs

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 8, 2014, 11:48 UTC
Message-ID
<vpqlhucmqxt.fsf@anie.imag.fr>
In-Reply-To
<d15f06ad-0418-48ed-a9dc-6ca1e955e75c@email.android.com>
James Denholm <nod.helm@gmail.com> writes:
Show 17 quoted lines
> On 8 May 2014 06:57:13 GMT+10:00, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
>>Felipe Contreras <felipe.contreras@gmail.com> writes:
>>
>>> Matthieu Moy wrote:
>>>> Felipe Contreras <felipe.contreras@gmail.com> writes:
>>>> > If you want to use python2, then use '/usr/bin/env python2'.
>>>> 
>>>> Err, yes, this is what the code does before your patch.
>>>
>>> Not for all the instances.
>>
>>Well, I guess not all scripts require python2, hence not all scripts
>>declare that they depend on python2.
>
> Does it make sense for git to have a strict subset of python scripts as
> version agnostic, though? Given that some scripts depend on python2
> already, and hence we know that the user has python2,

No, we don't. People do not have to use _all_ Python scripts. The discussion started about git-multimail.py, which I use on a server which doesn't have python3, while my desktop (where I use other Git commands) has Python3.

It is very important that git-multimail keeps running with Python2 (ideally, it could be portable Python 2 or 3, but it's not so easy to do), but that would be strange to force even non-git-multimail-users to use Python2 for that.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: James DenholmNext: Johan Herland
Message 12 of 13 in “Standardize python shebangs”
  1. Standardize python shebangsFelipe Contreras, May 7, 2014
  2. Johan HerlandMay 7, 2014
  3. Felipe ContrerasMay 7, 2014
  4. James DenholmMay 7, 2014
  5. Johan HerlandMay 7, 2014
  6. Matthieu MoyMay 7, 2014
  7. Felipe ContrerasMay 7, 2014
  8. Matthieu MoyMay 7, 2014
  9. Felipe ContrerasMay 7, 2014
  10. Matthieu MoyMay 7, 2014
  11. James DenholmMay 7, 2014
  12. Matthieu MoyMay 8, 2014
  13. Johan HerlandMay 8, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.