GNOME Bugzilla – Bug 544029
empathy's configure.ac doesn't detect python 2.6
Last modified: 2008-10-06 09:15:03 UTC
Please describe the problem: configure.ac only looks for python 2.3, 2.4, 2.5. Considering that Python 2.6 is coming soon it'd be good to have this fixed on next empathy release. --- empathy-0.23.4/configure.ac 2008-07-15 13:59:12.000000000 +0200 +++ empathy-0.23.4.new/configure.ac 2008-07-21 14:26:12.000000000 +0200 @@ -69,7 +69,7 @@ if test -z "$XSLTPROC"; then AC_MSG_ERROR([xsltproc (from libxslt) is required]) fi -AC_CHECK_PROGS([PYTHON], [python python2.3 python2.4 python2.5]) +AC_CHECK_PROGS([PYTHON], [python python2.3 python2.4 python2.5, python2.6]) if test -z "$PYTHON"; then AC_MSG_ERROR([Python is required]) fi Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 116140 [details] [review] detect python 2.6 Attached as patch (and fixed to remove the comma).
Created attachment 116145 [details] [review] use AM_PATH_PYTHON to be more generic
Note that AM_PATH_PYTHON is already used for the python binding, maybe you can remove that call there?
Created attachment 119967 [details] [review] use AM_PATH_PYTHON, so Python 2.6 is also detected This patch removes the AM_PATH_PYTHON check when building Python extensions as it is no longer necessary.
Why do you remove the error message if python is not found? Or does AM_PATH_PYTHON handle errors for us?
It does. (...) checking for a Python interpreter with version >= 2.3... none configure: error: no suitable Python interpreter found
Great, thanks! You can commit. I guess it's fine for the 2.24 branch too.
Thanks; commited in both places.