From 31d7dd77c6b17bbdd859123a8aa978f4292d64e6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 24 May 2026 18:49:04 -0700 Subject: [PATCH] prereq-build: bump python requirement to 3.8 Even though 3.8 is quite old, it's still used by Ubuntu 20.04 LTS. Bump the version to get some extra features. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/23521 Signed-off-by: Jonas Jelonek --- README.md | 4 ++-- include/prereq-build.mk | 10 ++++------ include/u-boot.mk | 3 +-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9141b2392df..dd9f4433e70 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ image usable to migrate from a vendor stock firmware to OpenWrt, try the If your device is supported, please follow the **Info** link to see install instructions or consult the support resources listed below. -## +## An advanced user may require additional or specific package. (Toolchain, SDK, ...) For everything else than simple firmware download, try the wiki download page: @@ -44,7 +44,7 @@ documentation. ``` binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev -make4.1+ perl python3.7+ rsync subversion unzip which +make4.1+ perl python3.8+ rsync subversion unzip which ``` ### Quickstart diff --git a/include/prereq-build.mk b/include/prereq-build.mk index e4ac0a3de51..dcc21aafa5b 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -186,25 +186,23 @@ $(eval $(call SetupHostCommand,install,Please install 'install', \ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \ perl --version | grep "perl.*v5")) -$(eval $(call SetupHostCommand,python,Please install Python >= 3.7, \ +$(eval $(call SetupHostCommand,python,Please install Python >= 3.8, \ 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', \ python3.9 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \ - python3.7 -V 2>&1 | grep 'Python 3', \ - python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?')) + python3 -V 2>&1 | grep -E 'Python 3\.([8-9]|[0-9][0-9])\.?')) -$(eval $(call SetupHostCommand,python3,Please install Python >= 3.7, \ +$(eval $(call SetupHostCommand,python3,Please install Python >= 3.8, \ 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', \ python3.9 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \ - python3.7 -V 2>&1 | grep 'Python 3', \ - python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?')) + python3 -V 2>&1 | grep -E 'Python 3\.([8-9]|[0-9][0-9])\.?')) $(eval $(call TestHostCommand,python3-distutils, \ Please install the Python3 distutils module, \ diff --git a/include/u-boot.mk b/include/u-boot.mk index fcd8b5cd769..37ce68e7e73 100644 --- a/include/u-boot.mk +++ b/include/u-boot.mk @@ -35,8 +35,7 @@ ifdef UBOOT_USE_INTREE_DTC python3.10-config --includes 2>&1 | grep 'python3', \ python3.9-config --includes 2>&1 | grep 'python3', \ python3.8-config --includes 2>&1 | grep 'python3', \ - python3.7-config --includes 2>&1 | grep 'python3', \ - python3-config --includes 2>&1 | grep -E 'python3\.([7-9]|[0-9][0-9])\.?')) + python3-config --includes 2>&1 | grep -E 'python3\.([8-9]|[0-9][0-9])\.?')) $(eval $(call TestHostCommand,python3-setuptools, \ Please install the Python3 setuptools module, \ -- 2.47.3