summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <timothy.t.orling@linux.intel.com>2020-03-31 20:03:02 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-01 10:44:23 (GMT)
commit1834a0ce44a154dccaa43b55b51d1a848f087b7e (patch)
tree539c903ac330d2519923fd1d5fccd3774aa7dbc6
parent420c926f8a425d0fc52d58373ca447a2ce7b3b54 (diff)
downloadpoky-1834a0ce44a154dccaa43b55b51d1a848f087b7e.tar.gz
oe-buildenv-internal: python 3.5 as min version
Python 3.4 is EOL: https://www.python.org/downloads/release/python-3410/ The last supported distro was probably CentOS-7, which has python36 available from epel-7 or scl (as rh-python36) [1] [1] https://www.softwarecollections.org/en/scls/rhscl/rh-python36/ (From OE-Core rev: 20cdec283a2ee39daa2ffaace11daa764ba40606) Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 8cbe346..c62688f 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_v34_check=$(python3 -c 'import sys; print(sys.version_info >= (3,4,0))') 35py_v35_check=$(python3 -c 'import sys; print(sys.version_info >= (3,5,0))')
36if [ "$py_v34_check" != "True" ]; then 36if [ "$py_v35_check" != "True" ]; then
37 echo >&2 "BitBake requires Python 3.4.0 or later as 'python3'" 37 echo >&2 "BitBake requires Python 3.5.0 or later as 'python3'"
38 return 1 38 return 1
39fi 39fi
40unset py_v34_check 40unset py_v35_check
41 41
42if [ -z "$BDIR" ]; then 42if [ -z "$BDIR" ]; then
43 if [ -z "$1" ]; then 43 if [ -z "$1" ]; then