Skip to content

Commit a348ab7

Browse files
dschoJunio C Hamano
authored andcommitted
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>
1 parent 2a3763e commit a348ab7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ endif
291291
ifdef WITH_OWN_SUBPROCESS_PY
292292
PYMODULES += compat/subprocess.py
293293
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
296298
endif
297299
endif
298300

0 commit comments

Comments
 (0)