[gnumeric] configuration: handle python 3.10
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] configuration: handle python 3.10
- Date: Sat, 24 Apr 2021 12:13:55 +0000 (UTC)
commit ce9a83df362c549aef04c5074fae928a5eeeea51
Author: Morten Welinder <terra gnome org>
Date: Sat Apr 24 08:13:19 2021 -0400
configuration: handle python 3.10
Old sins coming back to bite us...
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 63af2f9e8..0d44bf847 100644
--- a/configure.ac
+++ b/configure.ac
@@ -901,8 +901,8 @@ AM_CONDITIONAL(HAVE_PYTHON_GI, test "x$have_python_gi" = "xyes")
if test "x$python_msg" = xyes; then
BIG_CHECKING([for python = 3.x])
- [PY_VERSION=`$PYTHON -c 'import sys ; sys.stdout.write(sys.version[0:3])'`
- major_ver=`$PYTHON -c 'import sys ; sys.stdout.write(sys.version[0:1])'`]
+ [PY_VERSION=`$PYTHON -c 'import sys; sys.stdout.write("{:d}.{:d}".format(*sys.version_info))'`
+ major_ver=`$PYTHON -c 'import sys ; sys.stdout.write(str(sys.version_info[0]))'`]
if test "x$major_ver" = "x3"; then
AC_MSG_RESULT(yes)
if test "x$with_native_win32" = xyes ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]