Bug 1071438 - Make client.mk detect python like configure and mach do. r=mshal
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 24 Sep 2014 07:57:10 +0900
changeset 259408 d62a8389ca0a874be0b42af4138c78aec8689269
parent 259407 07130f61fbe01a7c0de182f71225d73e0cee4444
child 259409 caeb5176aeca1b2f10d6177cb6934b6c44381046
push id33357
push usernchen@mozilla.com
push dateWed, 24 Sep 2014 04:32:01 +0000
treeherdertry@85260d35306b [default view] [failures only]
reviewersmshal
bugs1071438
milestone35.0a1
Bug 1071438 - Make client.mk detect python like configure and mach do. r=mshal
client.mk
--- a/client.mk
+++ b/client.mk
@@ -65,17 +65,17 @@ AUTOCONF = $(shell which fink >/dev/null
 endif
 
 ifeq (,$(strip $(AUTOCONF)))
 AUTOCONF=$(error Could not find autoconf 2.13)
 endif
 
 SH := /bin/sh
 PERL ?= perl
-PYTHON ?= python
+PYTHON ?= $(shell which python2.7 > /dev/null 2>&1 && echo python2.7 || echo python)
 
 CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
 ifdef CONFIG_GUESS_SCRIPT
   CONFIG_GUESS := $(shell $(CONFIG_GUESS_SCRIPT))
 endif
 
 
 ####################################