From e0275755322f25c08b035b164fc305035b16f30f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 13 Oct 2014 09:17:36 -0400 Subject: [PATCH] Python bindings: fail configure if python version < 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- README | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 95cc1fca..7b07e1e2 100644 --- a/README +++ b/README @@ -53,7 +53,7 @@ To compile Babeltrace, you will need: (Debian/Ubuntu : python3-dev) swig >= 2.0 (optional) (Debian/Ubuntu : swig2.0) - python 3.0 or better (optional) + python >= 3.0 (optional) (Debian/Ubuntu : python3) If you want Python bindings, run ./configure --enable-python-bindings. diff --git a/configure.ac b/configure.ac index c9a25e09..bccbcde2 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,7 @@ AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes]) if test "x${enable_python:-yes}" = xyes; then AX_PKG_SWIG($swig_version, [], [ AC_MSG_ERROR([SWIG $swig_version or newer is needed]) ]) - AM_PATH_PYTHON + AM_PATH_PYTHON([3.0], , [AC_MSG_ERROR(Python3 is not available or is not the default Python interpreter on your system. See the README file to learn how to override your distribution's default Python interpreter.)]) AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for python, bypassing python-config]) AC_ARG_VAR([PYTHON_CONFIG], [Path to python-config]) -- 2.34.1