[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>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-11-22 10:30:05 +00:00
1 parent 51d3ca60cb
commit d8bd52ce0d
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
#!/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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.