diff mbox

[babeltrace] Set the minimum Python version to 3.0

Message ID 1487709703-31414-1-git-send-email-francis.deslauriers@efficios.com
State Accepted, archived
Delegated to: Jérémie Galarneau
Headers show

Commit Message

Francis Deslauriers Feb. 21, 2017, 8:41 p.m. UTC
To be applied on Babeltrace v1.5

Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jérémie Galarneau May 26, 2017, 1:37 p.m. UTC | #1
Merged in stable-1.5 and stable-1.4. Thanks!

Jérémie

On 21 February 2017 at 15:41, Francis Deslauriers
<francis.deslauriers at efficios.com> wrote:
> To be applied on Babeltrace v1.5
>
> Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index fd80fd9..7d9b66e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -239,7 +239,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([Python 3.0 or newer is needed]) ])
>
>    AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for python, bypassing python-config])
>    AC_ARG_VAR([PYTHON_CONFIG], [Path to python-config])
> --
> 2.7.4
>
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index fd80fd9..7d9b66e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,7 +239,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([Python 3.0 or newer is needed]) ])
 
   AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for python, bypassing python-config])
   AC_ARG_VAR([PYTHON_CONFIG], [Path to python-config])