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

Re: [PATCH] svnrdump_sim: start the script with /usr/bin/env python

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 28, 2012, 19:19 UTC
Message-ID
<CAMP44s3YfLrL+74j5DOVVATK8GWEo1qHnmJDW5dLWJRxK_CVLQ@mail.gmail.com>
In-Reply-To
<7vmwy1hdgx.fsf@alter.siamese.dyndns.org>
On Wed, Nov 28, 2012 at 5:57 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Christian Couder <christian.couder@gmail.com> writes:
>
>> On Wed, Nov 28, 2012 at 9:03 AM, Felipe Contreras
>> <felipe.contreras@gmail.com> wrote:
Show 8 quoted lines
>>> That works if somebody managed to export PYTHON_PATH, which very very
>>> often is not the case for me.
>>
>> Yeah, and even if PYTHON_PATH is used, in t9020-remote-svn.sh,
>> svnrdump.py is used as is.
>
> You need a fix for that; didn't I already say "you need a bit more
> than that"?

I disagree. Most of the contrib scripts are expected to be used as they are. There's no step in the Makefile that will convert them, and it's up to each distribution to decide what to do with them. This is what Arch Linux does:

  # more contrib stuff
  cp -a ./contrib/* $pkgdir/usr/share/git/
  # scripts are for python 2.x
  sed -i 's|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|' \
    $(find "$pkgdir" -name '*.py') \
    "$pkgdir"/usr/lib/git-core/git-p4 \
    "$pkgdir"/usr/share/git/gitview/gitview

At some point we might decide to change this, but at the moment contrib scripts are pretty much stand-alone.

Cheers.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “svnrdump_sim: start the script with /usr/bin/env python”
  1. svnrdump_sim: start the script with /usr/bin/env pythonChristian Couder, Nov 28, 2012
  2. Junio C HamanoNov 28, 2012
  3. Felipe ContrerasNov 28, 2012
  4. Christian CouderNov 28, 2012
  5. Junio C HamanoNov 28, 2012
  6. Felipe ContrerasNov 28, 2012
  7. Junio C HamanoNov 28, 2012
  8. Felipe ContrerasNov 28, 2012

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.