| Submitter | Stefan Hajnoczi |
|---|---|
| Date | April 13, 2012, 9:39 a.m. |
| Message ID | <1334309956-31827-7-git-send-email-stefanha@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/152270/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/configure b/configure index b392c6f..1d94acd 100755 --- a/configure +++ b/configure @@ -1242,6 +1242,14 @@ if ! has $python; then exit 1 fi +# Note that if the Python conditional here evaluates True we will exit +# with status 1 which is a shell 'false' value. +if ! "$python" -c 'import sys; sys.exit(sys.version_info[0] >= 3)'; then + echo "Python 2 required but '$python' is version 3 or better." + echo "Use --python=/path/to/python to specify a Python 2." + exit 1 +fi + if test -z "$target_list" ; then target_list="$default_target_list" else