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 206972 d62a8389ca0a874be0b42af4138c78aec8689269
parent 206971 07130f61fbe01a7c0de182f71225d73e0cee4444
child 206973 caeb5176aeca1b2f10d6177cb6934b6c44381046
push id10920
push userryanvm@gmail.com
push dateWed, 24 Sep 2014 21:12:11 +0000
treeherderb2g-inbound@cb4f750b2ed5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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
 
 
 ####################################