Files
xen/tools/check/check_python
T
Keir Fraser 0afa130b1f tools/check: We do need a default for ${PYTHON} as called from
install.sh with PYTHON possibly undefined in the environment.

So we make PYTHON=python the sensible default.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-07-15 15:33:05 +01:00

14 lines
226 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
. ./funcs.sh
if test -z ${PYTHON}; then
PYTHON=python
fi
${PYTHON} -c '
import sys
sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
' || fail "need python version >= 2.2"