From 058d56e2c8184b4b1de197664ad980b6233fc830 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 7 Jun 2021 17:50:49 +0800 Subject: [PATCH] do_cmake.sh: use python3.10 for fedora 35 fedora34 was released in April 2021 with Python3.9. while fedora 35 (still Rawhide) will include python3.10. see https://fedoraproject.org/wiki/Releases/35/ChangeSet#Python_3.10 so update the script accordingly. Signed-off-by: Kefu Chai --- do_cmake.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/do_cmake.sh b/do_cmake.sh index 25b8efd39592..318715dafc0a 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -19,7 +19,9 @@ if [ -r /etc/os-release ]; then source /etc/os-release case "$ID" in fedora) - if [ "$VERSION_ID" -ge "33" ] ; then + if [ "$VERSION_ID" -ge "35" ] ; then + PYBUILD="3.10" + elif [ "$VERSION_ID" -ge "33" ] ; then PYBUILD="3.9" elif [ "$VERSION_ID" -ge "32" ] ; then PYBUILD="3.8" -- 2.47.3