Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e7a338e13825524c5b9ea0354e633983acee4baf

>---------------------------------------------------------------

commit e7a338e13825524c5b9ea0354e633983acee4baf
Author: Ian Lynagh <i...@well-typed.com>
Date:   Fri Nov 30 12:05:02 2012 +0000

    Use python2 if it exists. Based on a patch from michalt. Fixes #7333.

>---------------------------------------------------------------

 mk/boilerplate.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/mk/boilerplate.mk b/mk/boilerplate.mk
index 56b0284..f1cd6c8 100644
--- a/mk/boilerplate.mk
+++ b/mk/boilerplate.mk
@@ -126,6 +126,9 @@ GS = gs
 CP = cp
 RM = rm -f
 PYTHON = python
+ifeq "$(shell $(SHELL) -c 'python2 -c 0' 2> /dev/null && echo exists)" "exists"
+PYTHON = python2
+endif
 
 # -----------------------------------------------------------------------------
 # configuration of TEST_HC



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to