python-r1.eclass: Ban python_export_best in EAPI 6
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 21:27:52 +0000 (22:27 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/python-r1.eclass

index 1531442caff8ae123ff9f64e26591083ab30b37f..de83bb5d6ac92f3d3f5a45ac024269a132e54b22 100644 (file)
@@ -603,6 +603,8 @@ python_setup() {
 python_export_best() {
        debug-print-function ${FUNCNAME} "${@}"
 
+       [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}"
+
        eqawarn "python_export_best() is deprecated. Please use python_setup instead,"
        eqawarn "combined with python_export if necessary."