Optionally work without python

In some setups (notably server setups) you do not need that dependency.
Gracefully handle the absence of python when NO_PYTHON is defined.

Signed-off-by: Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Johannes Schindelin
2006-02-18 13:01:18 +01:00
committed by Junio C Hamano
parent 289c4b36e3
commit abb7c7b31c
7 changed files with 32 additions and 1 deletions

View File

@ -42,7 +42,7 @@ fi
. ./test-lib.sh
"$PYTHON" -c 'import subprocess' || {
test "$no_python" || "$PYTHON" -c 'import subprocess' || {
echo >&2 'Your python seem to lack "subprocess" module.
Please check INSTALL document.'
exit 1