To: vim_dev@googlegroups.com Subject: Patch 8.2.2876 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///