From: Marcin Juszkiewicz Date: Tue, 28 Sep 2021 13:03:24 +0000 (+0200) Subject: prereq-build: recognize Python 3.10 X-Git-Tag: v21.02.1~24 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b258f220f1223dc578e1cfe3ff026fb98b9edd2;p=openwrt%2Fstaging%2Fpepe2k.git prereq-build: recognize Python 3.10 Fedora 35 contains Python 3.10 as default version. Make use of it. Signed-off-by: Marcin Juszkiewicz [fix commit subject] Signed-off-by: Paul Spooren (cherry picked from commit e1c03ca18519f9683f6bfce1795e58d99575d895) --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 623881c93f..8b6413564d 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -153,6 +153,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \ $(eval $(call CleanupPython2)) $(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \ + python3.10 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \ python3.7 -V 2>&1 | grep 'Python 3', \ @@ -161,6 +162,7 @@ $(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \ python3 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?')) $(eval $(call SetupHostCommand,python3,Please install Python >= 3.5, \ + python3.10 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \ python3.7 -V 2>&1 | grep 'Python 3', \