ia64/xen-unstable

view tools/check/check_python_devel @ 12546:cc180acf4693

[TOOLS] Check for python-devel.

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>
author kfraser@localhost.localdomain
date Wed Nov 22 10:30:05 2006 +0000 (2006-11-22)
parents
children afc6b5a60866
line source
1 #!/bin/bash
2 # CHECK-BUILD
4 function error {
5 echo
6 echo " *** Check for python development environment FAILED"
7 exit 1
8 }
10 python -c '
11 import os.path, sys
12 for p in sys.path:
13 if os.path.exists(p + "/config/Makefile"):
14 sys.exit(0)
15 sys.exit(1)
16 ' || error