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 <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23521
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Rosen Penev
2026-05-24 18:49:04 -07:00
committed by Jonas Jelonek
parent c699a1ab37
commit 31d7dd77c6
3 changed files with 7 additions and 10 deletions
+2 -2
View File
@@ -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 If your device is supported, please follow the **Info** link to see install
instructions or consult the support resources listed below. 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: 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 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 ### Quickstart
+4 -6
View File
@@ -186,25 +186,23 @@ $(eval $(call SetupHostCommand,install,Please install 'install', \
$(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
perl --version | grep "perl.*v5")) 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.13 -V 2>&1 | grep 'Python 3', \
python3.12 -V 2>&1 | grep 'Python 3', \ python3.12 -V 2>&1 | grep 'Python 3', \
python3.11 -V 2>&1 | grep 'Python 3', \ python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \ python3.10 -V 2>&1 | grep 'Python 3', \
python3.9 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -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\.([8-9]|[0-9][0-9])\.?'))
python3 -V 2>&1 | grep -E 'Python 3\.([7-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.13 -V 2>&1 | grep 'Python 3', \
python3.12 -V 2>&1 | grep 'Python 3', \ python3.12 -V 2>&1 | grep 'Python 3', \
python3.11 -V 2>&1 | grep 'Python 3', \ python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \ python3.10 -V 2>&1 | grep 'Python 3', \
python3.9 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -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\.([8-9]|[0-9][0-9])\.?'))
python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?'))
$(eval $(call TestHostCommand,python3-distutils, \ $(eval $(call TestHostCommand,python3-distutils, \
Please install the Python3 distutils module, \ Please install the Python3 distutils module, \
+1 -2
View File
@@ -35,8 +35,7 @@ ifdef UBOOT_USE_INTREE_DTC
python3.10-config --includes 2>&1 | grep 'python3', \ python3.10-config --includes 2>&1 | grep 'python3', \
python3.9-config --includes 2>&1 | grep 'python3', \ python3.9-config --includes 2>&1 | grep 'python3', \
python3.8-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\.([8-9]|[0-9][0-9])\.?'))
python3-config --includes 2>&1 | grep -E 'python3\.([7-9]|[0-9][0-9])\.?'))
$(eval $(call TestHostCommand,python3-setuptools, \ $(eval $(call TestHostCommand,python3-setuptools, \
Please install the Python3 setuptools module, \ Please install the Python3 setuptools module, \