python-utils: drop support for python2.7
Nothing in the tree uses this anymore, so make it fatal.
BUG=b:187794810
TEST=CQ passes
Change-Id: Iba6fb5031a8a6ee6fd96e8d0b7f85f0561f5e8d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/4341810
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index b8a5661..e997f7e 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -40,7 +40,6 @@
# All supported Python implementations, most preferred last.
_PYTHON_ALL_IMPLS=(
pypy3
- python2_7
python3_7 python3_8 python3_9 python3_6
)
readonly _PYTHON_ALL_IMPLS
@@ -80,9 +79,6 @@
python3_[6-9]|pypy3)
return 0
;;
- python2_7)
- return 1
- ;;
*)
[[ ${PYTHON_COMPAT_NO_STRICT} ]] && return 1
die "Invalid implementation in PYTHON_COMPAT: ${impl}"