Files
xen/tools/check/check_python_devel
T
2009-07-09 17:05:07 +01:00

18 lines
300 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD
. ./funcs.sh
if test -z ${PYTHON}; then
PYTHON=`/usr/bin/env python 2>/dev/null`
fi
has_or_fail ${PYTHON}
${PYTHON} -c '
import os.path, sys
for p in sys.path:
if os.path.exists(p + "/config/Makefile"):
sys.exit(0)
sys.exit(1)
' || fail "can't find python devel files"