[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



All,

I was attempting to perform a 'make dist' and installing from the 'dist' onto another machine. It looks like the last line of the install.sh script in the dist folder wants to check the prerequisites from the 'check' directory. I wanted to ask what the dist install methodology is with the autoconf configuration. I can give a hand, just wanted to check if people were working on this and what the thoughts were.

###/dist/install.sh
cd $src/../check
./chk install
echo "All done."


On Thu, Feb 23, 2012 at 9:36 AM, Olaf Hering <olaf@xxxxxxxxx> wrote:
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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.