All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Roger Pau Monne <roger.pau@entel.upc.edu>
Cc: ian.jackson@citrix.com, ian.campbell@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v8] build: add autoconf to replace custom checks in tools/check
Date: Thu, 23 Feb 2012 18:36:17 +0100	[thread overview]
Message-ID: <20120223173617.GA19213@aepfle.de> (raw)
In-Reply-To: <c2f0820e48ae9cf0735c.1329794352@build.localdomain>

On Tue, Feb 21, Roger Pau Monne wrote:

> -${PYTHON} -c '
> -import sys
> -sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 3)
> -' || fail "need python version >= 2.3"

> +`$PYTHON -c 'import sys; exit(eval("sys.version_info < ($1, $2)"))'`


Old python can not handle that new syntax:

 $ python
Python 2.4.2 (#1, Feb 16 2011, 12:49:02)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> exit(eval("sys.version_info < (2, 3)"))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'str' object is not callable
>>>

  parent reply	other threads:[~2012-02-23 17:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21  3:19 [PATCH v8] build: add autoconf to replace custom checks in tools/check Roger Pau Monne
2012-02-21 17:11 ` Ian Jackson
2012-02-21 18:38   ` Roger Pau Monné
2012-02-21 20:19     ` Ian Jackson
2012-02-23 16:16 ` Olaf Hering
2012-02-23 17:36 ` Olaf Hering [this message]
2012-02-27 21:20   ` Jeffrey Karrels
2012-02-28 18:09   ` Jeffrey Karrels
2012-02-28 18:48     ` Roger Pau Monné
2012-02-28 22:32       ` Jeffrey Karrels
2012-02-29 14:44       ` Ian Jackson

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=20120223173617.GA19213@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=roger.pau@entel.upc.edu \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.