Files
xen/tools/check/check_python_devel
T
Keir Fraser c8d0c0aba3 tools/check: No need to check for ${PYTHON} existence.
It must exist as otherwise the build will fail since we reference
$(PYTHON) all over the place. Furthermore the fallback of
'/usr/bin/env python' actually runs Python, it doesn't get the path to
it. So that wouldn't work very well.

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

15 lines
228 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD
. ./funcs.sh
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"