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

Re: Test failures with python versions when building git 1.8.1

From
Eric S. Raymond <esr@thyrsus.com>
Date
Jan 2, 2013, 05:45 UTC
Message-ID
<20130102054548.GA13483@thyrsus.com>
In-Reply-To
<7va9ss5fhq.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com>:
Show 14 quoted lines
> Dan McGee <dan@archlinux.org> writes:
> 
> > A test case snuck in this release that assumes /usr/bin/python is
> > python2 and causes test failures. Unlike all other tests and code
> > depending on python, this one does not respect PYTHON_PATH, which we
> > explicitly set when building git on Arch Linux due to python2 vs
> > python3 differences.
> 
> I had an impression that you are not supposed to run our scripts
> with python3 yet (no python scripts have been checked for python3
> compatibility), even though some people have expressed interests in
> doing so.
> 
> Eric?
Yeah, git's stuff is nowhere even *near* python3 ready.

I have it on my to-do list to run 2to3 on the in-tree scripts as a diagnostic, but I haven't had time to do that yet...mainly because cvsps/cvsimport blew up in my face when I poked at them.

Now I need to go beat parsecvs into shape and run both it and cvs2git against the CVS torture tests I'm developing, so the 2to3 check won't happen for a week or two at least. Sorry.

As in a general thing, I wouldn't advise worrying too much about python3 compatibility. That version is not gaining adoption very fast, mainly due to the rat's nest around plain strings vs. UTF-8 which can make code conversion a serious pain in the ass.

-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Previous: Junio C HamanoNext: Jeff King
Message 3 of 12 in “Test failures with python versions when building git 1.8.1”
  1. Dan McGeeJan 2, 2013
  2. Junio C HamanoJan 2, 2013
  3. Eric S. RaymondJan 2, 2013
  4. Jeff KingJan 2, 2013
  5. Junio C HamanoJan 2, 2013
  6. Jeff KingJan 2, 2013
  7. Joachim SchmitzJan 2, 2013
  8. Dan McGeeJan 2, 2013
  9. Junio C HamanoJan 2, 2013
  10. Dan McGeeJan 2, 2013
  11. Junio C HamanoJan 2, 2013
  12. Jeff KingJan 2, 2013

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.