From 71eded9e24806c68e83781dcd09dc5acee0740ae Mon Sep 17 00:00:00 2001 From: Valentin-D-Richard Date: Tue, 24 Jan 2023 18:43:21 +0100 Subject: [PATCH] Solved issue *configure detects wrong python version #78* by fixing in the python command determining the python version --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 8a2bb2a..937cfc2 100755 --- a/configure +++ b/configure @@ -12656,7 +12656,7 @@ $as_echo_n "checking for $am_display_PYTHON version... " >&6; } if ${am_cv_python_version+:} false; then : $as_echo_n "(cached) " >&6 else - am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` + am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write('.'.join(sys.version.split('.')[:2]))"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 $as_echo "$am_cv_python_version" >&6; }