mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -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:
2
src/auto/configure
vendored
2
src/auto/configure
vendored
@@ -6673,7 +6673,7 @@ if ${vi_cv_var_python3_version+:} false; then :
|
|||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
vi_cv_var_python3_version=`
|
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
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
|
||||||
|
|||||||
@@ -1436,7 +1436,7 @@ if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic";
|
|||||||
dnl -- get its version number
|
dnl -- get its version number
|
||||||
AC_CACHE_CHECK(Python version,vi_cv_var_python3_version,
|
AC_CACHE_CHECK(Python version,vi_cv_var_python3_version,
|
||||||
[[vi_cv_var_python3_version=`
|
[[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))'`
|
||||||
]])
|
]])
|
||||||
|
|
||||||
dnl -- it must be at least version 3
|
dnl -- it must be at least version 3
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2876,
|
||||||
/**/
|
/**/
|
||||||
2875,
|
2875,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user