python.eclass, distutils.eclass: Ban for EAPI=6

Ban deprecated python and distutils eclasses to avoid being accidentally
enabled in EAPI 6.
This commit is contained in:
Michał Górny
2015-11-13 19:44:21 +01:00
parent b72c3ed4b1
commit 7ebd9fec81
2 changed files with 7 additions and 0 deletions

View 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
;;

View File

@@ -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