mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Thanks to Ewan Mellor, Anthony Liguori, and Daniel P. Berrange for pointing out problems with and solutions for the problems with the first version. Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 lines
264 B
Bash
Executable File
17 lines
264 B
Bash
Executable File
#!/bin/bash
|
|
# CHECK-BUILD
|
|
|
|
function error {
|
|
echo
|
|
echo " *** Check for python development environment FAILED"
|
|
exit 1
|
|
}
|
|
|
|
python -c '
|
|
import os.path, sys
|
|
for p in sys.path:
|
|
if os.path.exists(p + "/config/Makefile"):
|
|
sys.exit(0)
|
|
sys.exit(1)
|
|
' || error
|