From eb4d9184adc9adc6437e0eabacfa957479449220 Mon Sep 17 00:00:00 2001 From: Menno Date: Tue, 20 Jan 2015 13:42:42 +0100 Subject: [PATCH] bootstrap.sh failed detect PYTHON_ROOT with Python3 Bootstrap failed on the print statement with Python 3.x, because the print statement is converted to a function in Python3 Adding parentheses fixes the problem and is backwards compatible with Python 2.x === Detecting Python version... 3.4 Detecting Python root... File "", line 1 import sys; print sys.prefix ^ SyntaxError: invalid syntax === Fixes: Ticket #6946 https://svn.boost.org/trac/boost/ticket/6946 Ticket #5677 https://svn.boost.org/trac/boost/ticket/5677 --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 98cf88bc1c7..d73a14b3182 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -277,7 +277,7 @@ if test "x$flag_no_python" = x; then if test "x$PYTHON_ROOT" = x; then echo -n "Detecting Python root... " - PYTHON_ROOT=`$PYTHON -c "import sys; print sys.prefix"` + PYTHON_ROOT=`$PYTHON -c "import sys; print (sys.prefix)"` echo $PYTHON_ROOT fi fi