diff options
author | Rich Ercolani <[email protected]> | 2021-10-29 18:36:01 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-29 15:36:01 -0700 |
commit | adeccfea177ee674913a87d95ddacbd699ed1c67 (patch) | |
tree | 1955a99aac998d8ef4f1f434539e208f959c57bf | |
parent | 6ef28c526ba7199a3740407d764b6505618ca8ba (diff) |
Python 3.10 fixes, part 2
There was a fallback case I overlooked in the initial patch, with
a similarly imperfect version extractor.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12045
Closes #12673
-rw-r--r-- | config/ax_python_devel.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/ax_python_devel.m4 b/config/ax_python_devel.m4 index fcf73dc20..7adcf01a0 100644 --- a/config/ax_python_devel.m4 +++ b/config/ax_python_devel.m4 @@ -224,7 +224,7 @@ EOD` ac_python_version=$PYTHON_VERSION else ac_python_version=`$PYTHON -c "import sys; \ - print (sys.version[[:3]])"` + print ('.'.join(sys.version.split('.')[[:2]]))"` fi fi |