[openwrt/openwrt] prereq-build: recognize Python 3.10

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 29 02:53:20 PDT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e1c03ca18519f9683f6bfce1795e58d99575d895

commit e1c03ca18519f9683f6bfce1795e58d99575d895
Author: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
AuthorDate: Tue Sep 28 15:03:24 2021 +0200

    prereq-build: recognize Python 3.10
    
    Fedora 35 contains Python 3.10 as default version. Make use of it.
    
    Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
    [fix commit subject]
    Signed-off-by: Paul Spooren <mail at aparcar.org>
---
 include/prereq-build.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 922e7c544b..9242407b18 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -157,6 +157,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 $(eval $(call CleanupPython2))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
+	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', \
@@ -164,6 +165,7 @@ $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
 	python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?'))
 
 $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
+	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', \



More information about the lede-commits mailing list