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

Re: [PATCH] setup.py: fix error message when running with python-2.3

From
Karl Hasselström <kha@treskal.com>
Date
Jul 12, 2008, 05:19 UTC
Message-ID
<20080712051937.GA17996@diana.vm.bytemark.co.uk>
In-Reply-To
<1215806972-18713-1-git-send-email-vmiklos@frugalware.org>
On 2008-07-11 22:09:31 +0200, Miklos Vajna wrote:
> When setup.py tries to check the python version, the check actually
> won't give a usable error message but it'll raise a SyntaxError. Fix
> this by not using generator expressions.
> -    pyver = '.'.join(str(n) for n in sys.version_info)
> +    pyver = '.'.join(map(lambda x: str(x), sys.version_info))

Thanks. And by not using a list comprehension, you stay compatible with pre-2.0 versions as well (though I guess we'd need to test that, since there may be other 2.0 things we rely on in this code path).

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Karl HasselströmNext: Catalin Marinas
Message 7 of 8 in “[StGIT] Failure to install on RHELWS4”
  1. Petr BaudisJul 11, 2008
  2. Thomas RastJul 11, 2008
  3. Miklos VajnaJul 11, 2008
  4. setup.py: fix error message when running with python-2.3Miklos Vajna, Jul 11, 2008
  5. setup.py: don't try to import stgit.run before the python version checkMiklos Vajna, Jul 11, 2008
  6. Karl HasselströmJul 16, 2008
  7. Karl HasselströmJul 12, 2008
  8. Catalin MarinasJul 11, 2008

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.