1 diff --git a/src/modules/rlm_python/configure b/src/modules/rlm_python/configure
2 index 636acb13c8..9240afc015 100755
3 --- a/src/modules/rlm_python/configure
4 +++ b/src/modules/rlm_python/configure
5 @@ -2994,7 +2994,7 @@ $as_echo "$as_me: Python sys.prefix \"${PY_PREFIX}\"" >&6;}
6 { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&5
7 $as_echo "$as_me: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&6;}
9 - PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ; print(sys.version[0:3])'`
10 + PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ; print(".".join(map(str, sys.version_info[:2])))'`
11 { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.version \"${PY_SYS_VERSION}\"" >&5
12 $as_echo "$as_me: Python sys.version \"${PY_SYS_VERSION}\"" >&6;}