Really honour NO_PYTHON
Do not even test for subprocess (trying to execute python). Signed-off-by: Johannes E. Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Feb 19, 2006 at 21:13 UTC
a348ab702a84983c258e4961a58b1b9502f428c8
1 file changed
+4
-2
Makefile
+4
-2
@@ -291,8 +291,10 @@ endif
291
ifdef WITH_OWN_SUBPROCESS_PY
292
PYMODULES += compat/subprocess.py
293
else
294
- ifneq ($(shell $(PYTHON_PATH) -c 'import subprocess;print"OK"' 2>/dev/null),OK)
295
- PYMODULES += compat/subprocess.py
294
+ ifeq ($(NO_PYTHON),)
295
+ ifneq ($(shell $(PYTHON_PATH) -c 'import subprocess;print"OK"' 2>/dev/null),OK)
296
+ PYMODULES += compat/subprocess.py
297
+ endif
298
endif
299
endif
300