ia64/xen-unstable

changeset 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 fe5ed694b0c2
children 18cd7d886949
files tools/check/check_python_devel
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/check/check_python_devel	Wed Nov 22 10:30:05 2006 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +#!/bin/bash
     1.5 +# CHECK-BUILD
     1.6 +
     1.7 +function error {
     1.8 +    echo
     1.9 +    echo "  *** Check for python development environment FAILED"
    1.10 +    exit 1
    1.11 +}
    1.12 +
    1.13 +python -c '
    1.14 +import os.path, sys
    1.15 +for p in sys.path:
    1.16 +	if os.path.exists(p + "/config/Makefile"):
    1.17 +		sys.exit(0)
    1.18 +sys.exit(1)
    1.19 +' || error