Mercurial > vim
comparison src/auto/configure @ 24675:ae30a87aafd3 v8.2.2876
patch 8.2.2876: configure cannot detect Python 3.10
Commit: https://github.com/vim/vim/commit/23c0192166760b0d73bd39252ca72e3cfe596f6e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 21 11:43:58 2021 +0200
patch 8.2.2876: configure cannot detect Python 3.10
Problem: Configure cannot detect Python 3.10.
Solution: Use sys.version_info. (closes https://github.com/vim/vim/issues/8233)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 May 2021 11:45:03 +0200 |
parents | 7b48e331519d |
children | db4afe19285d |
comparison
equal
deleted
inserted
replaced
24674:228af8f5523b | 24675:ae30a87aafd3 |
---|---|
6671 $as_echo_n "checking Python version... " >&6; } | 6671 $as_echo_n "checking Python version... " >&6; } |
6672 if ${vi_cv_var_python3_version+:} false; then : | 6672 if ${vi_cv_var_python3_version+:} false; then : |
6673 $as_echo_n "(cached) " >&6 | 6673 $as_echo_n "(cached) " >&6 |
6674 else | 6674 else |
6675 vi_cv_var_python3_version=` | 6675 vi_cv_var_python3_version=` |
6676 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` | 6676 ${vi_cv_path_python3} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'` |
6677 | 6677 |
6678 fi | 6678 fi |
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 | 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 |
6680 $as_echo "$vi_cv_var_python3_version" >&6; } | 6680 $as_echo "$vi_cv_var_python3_version" >&6; } |
6681 | 6681 |