summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Ludwinski2025-11-10 00:48:19 +0000
committerChristian Marangi2025-11-12 11:11:15 +0000
commitba041eb451597d5b00ba55a80d7ff4fd262760f7 (patch)
tree2007ef351e9bbb0dae10bf052a6ceda46a69b74c
parentfd7e43d429a370665795fb14c859c046c761e4e9 (diff)
downloadopenwrt-ba041eb451597d5b00ba55a80d7ff4fd262760f7.tar.gz
prereq-build: add Python 3.13 support
Add support for Python version 3.13 to include/prereq-build.mk. One of the reasons for this change is that Ubuntu 25.04 ships with Python 3.13 as default version. Let's support it. Signed-off-by: Kacper Ludwinski <kacper@ludwinski.dev> Link: https://github.com/openwrt/openwrt/pull/20735 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--include/prereq-build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index af1d4b2fc2..e4ac0a3de5 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -187,6 +187,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.13 -V 2>&1 | grep 'Python 3', \
python3.12 -V 2>&1 | grep 'Python 3', \
python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \
@@ -196,6 +197,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.13 -V 2>&1 | grep 'Python 3', \
python3.12 -V 2>&1 | grep 'Python 3', \
python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \