Patch 8.2.2876
Problem: Configure cannot detect Python 3.10.
Solution: Use sys.version_info. (closes #8233)
Files: src/configure.ac, src/auto/configure
*** ../vim-8.2.2875/src/configure.ac 2021-05-15 14:25:32.043351279 +0200
--- src/configure.ac 2021-05-21 11:43:29.019000030 +0200
***************
*** 1436,1442 ****
dnl -- get its version number
AC_CACHE_CHECK(Python version,vi_cv_var_python3_version,
[[vi_cv_var_python3_version=`
! ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
]])
dnl -- it must be at least version 3
--- 1436,1442 ----
dnl -- get its version number
AC_CACHE_CHECK(Python version,vi_cv_var_python3_version,
[[vi_cv_var_python3_version=`
! ${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
*** ../vim-8.2.2875/src/auto/configure 2021-05-15 14:25:32.047351264 +0200
--- src/auto/configure 2021-05-21 11:43:31.642987097 +0200
***************
*** 6673,6679 ****
$as_echo_n "(cached) " >&6
else
vi_cv_var_python3_version=`
! ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version"
>&5
--- 6673,6679 ----
$as_echo_n "(cached) " >&6
else
vi_cv_var_python3_version=`
! ${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
*** ../vim-8.2.2875/src/version.c 2021-05-20 21:14:17.166986859 +0200
--- src/version.c 2021-05-21 11:40:47.767794567 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2876,
/**/
--
Nothing is impossible for the man who doesn't have to do it.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202105210956.14L9uZbu559730%40masaka.moolenaar.net.