Really honour NO_PYTHON
[gitweb.git] / Makefile
index 080651e0d9d7b928f82291b6c44d3bb4e18659ef..d5a95c4101015fbc7c4c28b0419b78082f99d37d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -291,8 +291,10 @@ endif
 ifdef WITH_OWN_SUBPROCESS_PY
        PYMODULES += compat/subprocess.py
 else
-       ifneq ($(shell $(PYTHON_PATH) -c 'import subprocess;print"OK"' 2>/dev/null),OK)
-               PYMODULES += compat/subprocess.py
+       ifeq ($(NO_PYTHON),)
+               ifneq ($(shell $(PYTHON_PATH) -c 'import subprocess;print"OK"' 2>/dev/null),OK)
+                       PYMODULES += compat/subprocess.py
+               endif
        endif
 endif