From: Tim Orling Date: Tue, 31 Mar 2020 20:03:02 +0000 (-0700) Subject: oe-buildenv-internal: python 3.5 as min version X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20cdec283a2ee39daa2ffaace11daa764ba40606;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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/ Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 8cbe34669da..c62688fbd23 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal @@ -32,12 +32,12 @@ fi # We potentially have code that doesn't parse correctly with older versions # of Python, and rather than fixing that and being eternally vigilant for # any other new feature use, just check the version here. -py_v34_check=$(python3 -c 'import sys; print(sys.version_info >= (3,4,0))') -if [ "$py_v34_check" != "True" ]; then - echo >&2 "BitBake requires Python 3.4.0 or later as 'python3'" +py_v35_check=$(python3 -c 'import sys; print(sys.version_info >= (3,5,0))') +if [ "$py_v35_check" != "True" ]; then + echo >&2 "BitBake requires Python 3.5.0 or later as 'python3'" return 1 fi -unset py_v34_check +unset py_v35_check if [ -z "$BDIR" ]; then if [ -z "$1" ]; then