0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -05:00

patch 8.2.2876: configure cannot detect Python 3.10

Problem:    Configure cannot detect Python 3.10.
Solution:   Use sys.version_info. (closes #8233)
This commit is contained in:
Bram Moolenaar
2021-05-21 11:43:58 +02:00
parent 5cf94577cf
commit 23c0192166
3 changed files with 4 additions and 2 deletions

2
src/auto/configure vendored
View File

@@ -6673,7 +6673,7 @@ if ${vi_cv_var_python3_version+:} false; then :
$as_echo_n "(cached) " >&6
else
vi_cv_var_python3_version=`
${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
${vi_cv_path_python3} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5