|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v8] build: add autoconf to replace custom checks in tools/check
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
>>>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |