mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
15 lines
228 B
Bash
Executable File
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"
|