diff options
-rw-r--r-- | eclass/distutils.eclass | 3 | ||||
-rw-r--r-- | eclass/python.eclass | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass index 5f5a06950d84..d24ae551f7c2 100644 --- a/eclass/distutils.eclass +++ b/eclass/distutils.eclass @@ -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 ;; diff --git a/eclass/python.eclass b/eclass/python.eclass index c3634a004861..592119fa7993 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -12,6 +12,10 @@ # 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 |