mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
hosttools: no longer check for or provide host python 2 to builds
(From OE-Core rev: 5f8f16b17f66966ae91aeabc23e97de5ecd17447) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ed884c585f
commit
2b2be8086e
|
@ -138,11 +138,6 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
|
|||
os.symlink(srctool, desttool)
|
||||
else:
|
||||
notfound.append(tool)
|
||||
# Force "python" -> "python2"
|
||||
desttool = os.path.join(dest, "python")
|
||||
if not os.path.exists(desttool):
|
||||
srctool = "python2"
|
||||
os.symlink(srctool, desttool)
|
||||
|
||||
if notfound and fatal:
|
||||
bb.fatal("The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:\n %s" % " ".join(notfound))
|
||||
|
|
|
@ -481,14 +481,13 @@ export PATH
|
|||
HOSTTOOLS_DIR = "${TMPDIR}/hosttools"
|
||||
|
||||
# Tools needed to run builds with OE-Core
|
||||
# python is special cased to point at python2
|
||||
HOSTTOOLS += " \
|
||||
[ ar as awk basename bash bzip2 cat chgrp chmod chown chrpath cmp comm cp cpio \
|
||||
cpp cut date dd diff diffstat dirname du echo egrep env expand expr false \
|
||||
fgrep file find flock g++ gawk gcc getconf getopt git grep gunzip gzip \
|
||||
head hostname iconv id install ld ldd ln ls make makeinfo md5sum mkdir mknod \
|
||||
mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd python2 \
|
||||
python2.7 python3 ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh sha256sum \
|
||||
mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd \
|
||||
python3 ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh sha256sum \
|
||||
sleep sort split stat strings strip tail tar tee test touch tr true uname \
|
||||
uniq wc wget which xargs \
|
||||
"
|
||||
|
|
|
@ -29,13 +29,6 @@ if [ -z "$OE_SKIP_SDK_CHECK" ] && [ -n "$OECORE_SDK_VERSION" ]; then
|
|||
return 1
|
||||
fi
|
||||
|
||||
py_v27_check=$(python2 -c 'import sys; print sys.version_info >= (2,7,3)')
|
||||
if [ "$py_v27_check" != "True" ]; then
|
||||
echo >&2 "OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3."
|
||||
echo >&2 "Please upgrade your python v2."
|
||||
fi
|
||||
unset py_v27_check
|
||||
|
||||
# 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user