summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-buildenv-internal')
-rwxr-xr-xscripts/oe-buildenv-internal8
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.
35py_v35_check=$(python3 -c 'import sys; print(sys.version_info >= (3,5,0))') 35py_v38_check=$(python3 -c 'import sys; print(sys.version_info >= (3,8,0))')
36if [ "$py_v35_check" != "True" ]; then 36if [ "$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
39fi 39fi
40unset py_v35_check 40unset py_v38_check
41 41
42if [ -z "$BDIR" ]; then 42if [ -z "$BDIR" ]; then
43 if [ -z "$1" ]; then 43 if [ -z "$1" ]; then