Bug 1119512: port bug 1071438 to c-c (detect python2.7) r=standard8 a=aleth
authorLandry Breuil <landry@openbsd.org>
Mon, 12 Jan 2015 11:23:41 +0100
changeset 17157 9c437b0d8caf4b3a1221cb07da6e709fc9fd7df3
parent 17156 33de262ca789ee680afd85812839bd5b40bb4052
child 17158 702909d96ee0ab3ba48d8aafc826b76f4bc4a8f7
push id1305
push usermbanner@mozilla.com
push dateMon, 23 Feb 2015 19:48:12 +0000
treeherdercomm-esr52@110abf3d7989 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstandard8, aleth
bugs1119512, 1071438
Bug 1119512: port bug 1071438 to c-c (detect python2.7) r=standard8 a=aleth
client.mk
--- a/client.mk
+++ b/client.mk
@@ -69,17 +69,17 @@ ifeq (,$(strip $(AUTOCONF)))
 AUTOCONF=$(error Couldn't find autoconf 2.13)
 endif
 
 SH := /bin/sh
 ifndef MAKE
 MAKE := gmake
 endif
 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
 
 
 ####################################