diff options
Diffstat (limited to 'tools/check/check_python_devel')
-rwxr-xr-x | tools/check/check_python_devel | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/check/check_python_devel b/tools/check/check_python_devel new file mode 100755 index 0000000000..1074f4cf07 --- /dev/null +++ b/tools/check/check_python_devel @@ -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 |