Bug 1071438 - Make client.mk detect python like configure and mach do. r=mshal, a=sledru
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 24 Sep 2014 07:57:10 +0900
changeset 216898 605fa4c6a84d
parent 216897 a4529d1ee29c
child 216899 e3603d5accda
push id3959
push userryanvm@gmail.com
push date2014-10-01 19:28 +0000
treeherdermozilla-beta@6326278b28ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal, sledru
bugs1071438
milestone33.0
Bug 1071438 - Make client.mk detect python like configure and mach do. r=mshal, a=sledru
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
 
 
 ####################################