WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Add script to compile different versions of python;

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Add script to compile different versions of python; add python syntax checker
From: Andreas Florath <xen@xxxxxxxxxxxx>
Date: Mon, 27 Jul 2009 19:18:59 +0200
Delivery-date: Mon, 27 Jul 2009 10:19:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
Hello!

Because my last patch [1] had some problems running under python-2.3 
(and it looks, that I'm not the only one having this problem [2] [3]), I
wrote some scripts which compile different versions of python.
Additionally these scripts do a syntax check of all python code using
these different python versions.
This patch makes it easy to test the python code for different versions of
python: only the LD_LIBRATY_PATH and PATH must be adapted.
Currently supported: 2.3.7, 2.4.6, 2.5.4, 2.6.2, 3.1

Please consult the 'tests/README' how to use. (It's mostly a 'cd tests
&& make').

Kind regards

Andreas Florath

[1] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg00900.html
[2] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg00618.html
[3] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg00616.html

P.S.: First results:
Compiling
../tools/xm-test/tests/block-create/10_block_attach_dettach_multiple_devices.py
...
  File
"../tools/xm-test/tests/block-create/10_block_attach_dettach_multiple_devices.py",
line 10
    from os import path.basename
                       ^
SyntaxError: invalid syntax

for all versions of python. (Even after fixing this syntax error, there
is at least another one.) Sorry, but currently I'm not able to send a
patch for this, because I have major problems running the xm-test suite.

N.B.: Second result: python-3.1 does not work at the moment (227 Syntax
errors, mostly all because of the 'print arg' vs. 'print(arg)', and
'except Exception, e:' vs. 'except Exception as e:'). It looks that it
might be possible to fix all the 'print's - but the new exception syntax
is only implemented in python 2.6 (and AFAIK not in 2.3, 2.4 or 2.5).


Attachment: xu-regression-1.hg-export.gz
Description: GNU Zip compressed data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel