git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Really honour NO_PYTHON

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 19, 2006, 20:13 UTC
Message-ID
<Pine.LNX.4.63.0602192111490.20806@wbgn013.biozentrum.uni-wuerzburg.de>
Do not even test for subprocess (trying to execute python).
Signed-off-by: Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
---
	In my setup, gmake output would not say "/usr/bin/python: not found",
	but instead "08;"... :-)
 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
9fe05fa9b21ed71ccfde30aa0d87ed031b923d40
diff --git a/Makefile b/Makefile
index 58291f3..a2cb70c 100644
--- a/Makefile
+++ b/Makefile
@@ -300,8 +300,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
 
-- 
1.2.1.gb7c4-dirty
Message 1 of 1 in “Really honour NO_PYTHON”
  1. Really honour NO_PYTHONJohannes Schindelin, Feb 19, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.