mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
python-utils-r1.eclass: Ban private API in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -265,6 +265,8 @@ python_export() {
|
||||
eqawarn "python_export() is part of private eclass API."
|
||||
eqawarn "Please call python_get*() instead."
|
||||
|
||||
[[ ${EAPI} == [67] ]] || die "${FUNCNAME} banned in EAPI ${EAPI}"
|
||||
|
||||
_python_export "${@}"
|
||||
}
|
||||
|
||||
@@ -878,6 +880,8 @@ python_wrapper_setup() {
|
||||
eqawarn "python_wrapper_setup() is part of private eclass API."
|
||||
eqawarn "Please call python_setup() instead."
|
||||
|
||||
[[ ${EAPI} == [67] ]] || die "${FUNCNAME} banned in EAPI ${EAPI}"
|
||||
|
||||
_python_wrapper_setup "${@}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user