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-14 00:52:53 +01:00
parent b72c3ed4b1
commit 7ebd9fec81
2 changed files with 7 additions and 0 deletions
+4
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