]> git.proxmox.com Git - mirror_qemu.git/commit - configure
configure: Insist on a Python 2, not Python 3
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Apr 2012 18:09:52 +0000 (19:09 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 13 Apr 2012 09:01:35 +0000 (10:01 +0100)
commit6ccea1e4d9a39d0bcf5be5a7b49270c2132b9dcb
tree8ffa470612bd1d378e7ef2662883c515f20f22c8
parentd6ef40bf1881ddc82c8d64e72d412090efe1190e
configure: Insist on a Python 2, not Python 3

Our Python scripts require Python 2 and will fail on Python 3, eg:
  File "/home/petmay01/linaro/qemu-from-laptop/qemu/scripts/qapi-commands.py", line 378
      except getopt.GetoptError, err:
                               ^
  SyntaxError: invalid syntax

Add a check to configure that Python is not a Python 3, so we can
fail with a comprehensible error rather than an obscure one.

Reported-by: Boris Matti <swiftos@lavabit.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
configure