mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3
There is no use for python_is_python3 anymore, as Python 2 is no longer supported at runtime and the remaining any-r1 uses are pure-2. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1010,6 +1010,9 @@ _python_wrapper_setup() {
|
||||
#
|
||||
# Returns 0 (true) if it is, 1 (false) otherwise.
|
||||
python_is_python3() {
|
||||
eqawarn "${FUNCNAME} is deprecated, as Python 2 is not supported anymore"
|
||||
[[ ${EAPI} == [67] ]] || die "${FUNCNAME} banned in EAPI ${EAPI}"
|
||||
|
||||
local impl=${1:-${EPYTHON}}
|
||||
[[ ${impl} ]] || die "python_is_python3: no impl nor EPYTHON"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user