python.eclass, distutils.eclass: Ban for EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Nov 2015 18:44:21 +0000 (19:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Nov 2015 23:52:53 +0000 (00:52 +0100)
Ban deprecated python and distutils eclasses to avoid being accidentally
enabled in EAPI 6.

eclass/distutils.eclass
eclass/python.eclass

index 5f5a06950d84f07871ef43820147e9a0c1fa88fa..d24ae551f7c281b5840cd73753efe3e36f992975 100644 (file)
@@ -18,6 +18,9 @@ fi
 inherit multilib
 
 case "${EAPI:-0}" in
+       6)
+               die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
+               ;;
        0|1)
                EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
                ;;
index c3634a0048612af49f13ba3374e268f1d2df2cd6..592119fa79931c6e9bc9882ff654b0973c00cddf 100644 (file)
 # This eclass is DEPRECATED. Please use python-r1, python-single-r1
 # or python-any-r1 instead.
 
+if [[ ${EAPI} == 6 ]]; then
+       die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
+fi
+
 if [[ ${_PYTHON_UTILS_R1} ]]; then
        die 'python.eclass can not be used with python-r1 suite eclasses.'
 fi