diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-08-17 15:53:56 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-21 16:15:35 +0100 |
commit | cc488967ad510fbafde6a68634a5614ac00b2b8a (patch) | |
tree | 16d3894eca1edee72421847341dcc29033eed021 | |
parent | 95196108707bf4f20428202d312b974b2968913c (diff) | |
download | poky-cc488967ad510fbafde6a68634a5614ac00b2b8a.tar.gz |
oe-buildenv-internal: update required Python version
The system requirements in the current version of the reference manual
state that Python 3.8.0 is the minimum version, but oe-buildenv-internal
still only checks for 3.5.0 or newer. Update the script to match.
(From OE-Core rev: 3e655a07f2de64dbf39189c3ece56803f6bc334e)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/oe-buildenv-internal | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index f856e618aa..2fdb19565a 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -32,12 +32,12 @@ fi | |||
32 | # We potentially have code that doesn't parse correctly with older versions | 32 | # We potentially have code that doesn't parse correctly with older versions |
33 | # of Python, and rather than fixing that and being eternally vigilant for | 33 | # of Python, and rather than fixing that and being eternally vigilant for |
34 | # any other new feature use, just check the version here. | 34 | # any other new feature use, just check the version here. |
35 | py_v35_check=$(python3 -c 'import sys; print(sys.version_info >= (3,5,0))') | 35 | py_v38_check=$(python3 -c 'import sys; print(sys.version_info >= (3,8,0))') |
36 | if [ "$py_v35_check" != "True" ]; then | 36 | if [ "$py_v38_check" != "True" ]; then |
37 | echo >&2 "BitBake requires Python 3.5.0 or later as 'python3 (scripts/install-buildtools can be used if needed)'" | 37 | echo >&2 "BitBake requires Python 3.8.0 or later as 'python3' (scripts/install-buildtools can be used if needed)" |
38 | return 1 | 38 | return 1 |
39 | fi | 39 | fi |
40 | unset py_v35_check | 40 | unset py_v38_check |
41 | 41 | ||
42 | if [ -z "$BDIR" ]; then | 42 | if [ -z "$BDIR" ]; then |
43 | if [ -z "$1" ]; then | 43 | if [ -z "$1" ]; then |