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 206966 d62a8389ca0a874be0b42af4138c78aec8689269
parent 206965 07130f61fbe01a7c0de182f71225d73e0cee4444
child 206967 caeb5176aeca1b2f10d6177cb6934b6c44381046
push id27544
push userryanvm@gmail.com
push dateWed, 24 Sep 2014 21:10:36 +0000
treeherderautoland@1735ff2bb23e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1071438
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
 
 
 ####################################