[openwrt/openwrt] prereq-build: add Python 3.12 support

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 24 13:05:23 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/ba84c3640b125c8da71e8376d7128fa60506d7f9

commit ba84c3640b125c8da71e8376d7128fa60506d7f9
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Sat Aug 17 16:23:54 2024 +0200

    prereq-build: add Python 3.12 support
    
    This reverts commit 09b7e1955c92e0b05197174b7bd4aef2c4073a35.
    
    Signed-off-by: Paul Spooren <mail at aparcar.org>
    Link: https://github.com/openwrt/openwrt/pull/16699
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit bf059f7108e75fdec618a272ab8c52d4780aafed)
    Signed-off-by: Andreas Gnau <andreas.gnau at iopsys.eu>
    Link: https://github.com/openwrt/openwrt/pull/19513
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 include/prereq-build.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 52988fbda9..c5df77e0b4 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -176,6 +176,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 	perl --version | grep "perl.*v5"))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
+	python3.12 -V 2>&1 | grep 'Python 3', \
 	python3.11 -V 2>&1 | grep 'Python 3', \
 	python3.10 -V 2>&1 | grep 'Python 3', \
 	python3.9 -V 2>&1 | grep 'Python 3', \
@@ -185,6 +186,7 @@ $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
 	python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?'))
 
 $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
+	python3.12 -V 2>&1 | grep 'Python 3', \
 	python3.11 -V 2>&1 | grep 'Python 3', \
 	python3.10 -V 2>&1 | grep 'Python 3', \
 	python3.9 -V 2>&1 | grep 'Python 3', \




More information about the lede-commits mailing list