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 225227 8ed331880babf4c6c59d75dd34b7f218b8e8bf72
parent 225226 7b9331d4bfb3a435f5c70c38b0d2038541327c74
child 225228 ab1aa38a369a71678757aa4a953254811a73f18f
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal, sledru
bugs1071438
milestone34.0a2
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
 
 
 ####################################