summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-20 08:56:14 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-23 23:44:02 +0200
commitbee922d3c8426e2bc5a14e4427525fece5db76b0 (patch)
tree846d0819debd2c40fd1cb723d9ab1f7c5bdc5167 /eclass
parentapp-office/gnumeric: add 1.12.50 (diff)
downloadgentoo-bee922d3c8426e2bc5a14e4427525fece5db76b0.tar.gz
gentoo-bee922d3c8426e2bc5a14e4427525fece5db76b0.tar.bz2
gentoo-bee922d3c8426e2bc5a14e4427525fece5db76b0.zip
python-utils-r1.eclass: Ban private API in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python-utils-r1.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 3dbf221eac5d..bab4be0f521d 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -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 "${@}"
}