瀏覽代碼

prereq-build: add Python 3.12 support

This reverts commit 09b7e1955c92e0b05197174b7bd4aef2c4073a35.

Signed-off-by: Paul Spooren <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16699
Signed-off-by: Robert Marko <[email protected]>
Paul Spooren 1 年之前
父節點
當前提交
bf059f7108
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/prereq-build.mk

+ 2 - 0
include/prereq-build.mk

@@ -182,6 +182,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 	perl --version | grep "perl.*v5"))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.7, \
+	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', \
@@ -190,6 +191,7 @@ $(eval $(call SetupHostCommand,python,Please install Python >= 3.7, \
 	python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?'))
 
 $(eval $(call SetupHostCommand,python3,Please install Python >= 3.7, \
+	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', \