From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Florath Subject: [PATCH] Add script to compile different versions of python; add python syntax checker Date: Mon, 27 Jul 2009 19:18:59 +0200 Message-ID: <4A6DE183.5060605@flonatel.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020005010900000905040201" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020005010900000905040201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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). --------------020005010900000905040201 Content-Type: application/x-gzip; name="xu-regression-1.hg-export.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="xu-regression-1.hg-export.gz" H4sICJu8bUoCA3h1LXJlZ3Jlc3Npb24tMS5oZy1leHBvcnQApVh7U9xIDv87/hQ6mNoCPLbn /brjDhJmN2QDoXhckqpUWI/dHvuw3V67h4Fj+e4ntT0eD2M4w5AUdLfVakk/qSX1Nnz8DSzX DKcsYQIiU1iusg1XCYvhMLRjZibwq89jU7jwjzsWHjg+D03BfJ3H038i5RFOoNnqDPqNbrfX B63fajRw/ZTbDI6PYDC0e73+oGl2rXa70++xfr/tOP1mw+q27VbDbA17nYlp2bjlzIxZKAAG ptPqOcwZDAfWYGA3J8PWkHWHfbs9abVbvX57MkAufVs5tG1I7kNh3qEKzLoBh8dge47DJKNb FiceDxPgDkT3wuWhotBX0OKVM+S8ICbo7tSbhjxmiqZpYBr5/N2vsQefZj60OqjzqDEYdTuA +g5BbTRRbVVVYVIgP+FhSt6HZm/UHo5wkJGTlQ4OQGs2WvUeqPRnCAcHCvxMxGxi88Dglhn4 mr5XK6z5cy8yCnOPs2BmKOpPwRKRGF6YCNP3mb1cmsw8vzC1+Tz0uWknxEVw7ieGvpcR+d4E x/reDz26r+WfJ/6NMKOWYZss4GE2tUTsl5DEHtnc8IJp60+Lz2vVzJ1KdmLeMMfzU5sbNrs1 wpnvv7t0Z/DJDKHRhEZjJP9Dc9hvoAkbucVXOVQxe6OOHJr1QZtsrm7jf7hgIoFZBAkPGMRs GrOE3AfMKPI9yxTkSkR3PkOXKnyXh2c8LjnEM1xyvaQOpgAf40fglMHETDwLpKHBAFSP+TwK yE1ZeOvFPJTjYJYI4jNhkGMJO1PLqoOu67vylG/j0+vzL18u92sPZ1+PHg1dV1RFPft++fHL 6fW/x+cXx19OL/ZTh9daehvyYWc57C6HvcWwrTeJk36GjL6PAA9XVPw1SoNLy6jSgCsSln4u WRyRbYQXMK2gsqK+O9ihq0dj8MsvMoIj1B1QuVWNHv8ONocfSA/4cWGExwz7xIq9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O3303PMHzFZdXqpK3/32T6QKdzFz08WSPl n8Ke5M4UpuHpxUCEa7mo9nA0vsB72ol5AJmxYS0VPJz9/pvsHR/T9LNNAKcdMI2W7T3GHPHb r2H+XuzZr8kW7OLq/fXJ4e/ji+uT49Ori+tP+9p/ZLX1/ur489H10fH5/gutYnBDKmgRJpec HpvYHcteWaF+XJhIeOdAhRRXW8hIau2us1ujQ/6KCrph8dDxpjN0PA07bYpHLXHRD+3l3Itu ezijWOIzjLi7O8rykP6k65pwKawTnEYx3u93+xWqhxoZWMohw7n2sGbYx+XXbDeqlrfyL2j3 lvAof73YPErK+b4iWJrDZ4LlA3FOZFhkNzZdPcVcSFQ72c0vCQM0JCY6JLBSit0sBlY8P5Ju r6jMcjlsXTx95a1FW/mb1/jb+MPV5eH7z+P9PyR5LYK/QKDj2rClbf2BTO4oKwFC9fn4/fnh +ffrs8PLjy86SC2i99B8axV6NM2oRoSkshbIkmWRYQDpYkGZQeaDqPBAsA1fXRYuUqfUjl4w diipMTP2PSrA6fqPeRQxu047VjO772Fym3todZvr9Dl/olqa5pEkymAgfDT0zT8xtGGLHnzd qb73188f+g/9qWL63hbQC2Mpy/9vQKNsn7GUg9ykRBR97zk52B0WbbV/vSW61qvrzSNrnedr oqr1TFQd5a9+maNIp8kqB6g1ZcGTCI41MCUlGU+iUBAllKP0l1NL9nqZhVkhJTx70SvqfEq8 EKsvlRLCQ3aGTHTgChGNDGM+n+uZsXg8NRwRZZexsaQv56D8D4NmElWtGgAA --------------020005010900000905040201 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020005010900000905040201--