From c2af28246f5e7706d37120e24018af356c41ebc1 Mon Sep 17 00:00:00 2001 From: James Duley Date: Tue, 19 Aug 2014 11:50:03 +1200 Subject: [PATCH] redirect stderr to stdout for shell python --version --- make/tools.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/tools.mk b/make/tools.mk index 8213dee4b..ff3e43561 100644 --- a/make/tools.mk +++ b/make/tools.mk @@ -597,7 +597,7 @@ ifeq ($(shell [ -d "$(PYTHON_DIR)" ] && $(ECHO) "exists"), exists) else # not installed, hope it's in the path... # $(info $(EMPTY) WARNING $(call toprel, $(PYTHON_DIR)) not found, using system PATH) - ifeq ($(findstring Python 2,$(shell python --version)), Python 2) + ifeq ($(findstring Python 2,$(shell python --version 2>&1)), Python 2) export PYTHON := python else export PYTHON := python2