debuggers.hg

view tools/check/check_python @ 19957:7b8f6416aae4

Make python check scripts use of $(PYTHON) make variable.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jul 09 17:05:07 2009 +0100 (2009-07-09)
parents bcae9d2cc2f8
children bc80ccb79c5b
line source
1 #!/bin/sh
2 # CHECK-BUILD CHECK-INSTALL
4 . ./funcs.sh
6 if test -z ${PYTHON}; then
7 PYTHON=`/usr/bin/env python 2>/dev/null`
8 fi
10 ${PYTHON} -c '
11 import sys
12 sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
13 ' || fail "need python version >= 2.2"