[nautilus-python] Fix python3 syntax error in python macros
- From: Adam Plumb <adamplumb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-python] Fix python3 syntax error in python macros
- Date: Wed, 12 Jan 2011 20:27:45 +0000 (UTC)
commit d4d59c2cccdb6aad709b194d0841d41effbe1679
Author: Adam Plumb <adamplumb gmail com>
Date: Wed Jan 12 15:27:36 2011 -0500
Fix python3 syntax error in python macros
m4/python.m4 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/m4/python.m4 b/m4/python.m4
index dfa1919..18685f1 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -43,8 +43,8 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
@@ -112,7 +112,7 @@ AC_DEFUN([AM_CHECK_PYTHON_LIBS],
[AC_REQUIRE([AM_CHECK_PYTHON_HEADERS])
AC_MSG_CHECKING(for libraries required to embed python)
dnl deduce PYTHON_LIBS
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
AC_MULTILIB(yes)
if test "x$PYTHON_LIBS" = x; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]