diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-11-13 19:44:21 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-11-14 00:52:53 +0100 |
commit | 7ebd9fec81aac3ea0814c9c45e1cfc806ba00a30 (patch) | |
tree | 693f0cd91155b22bed22d305aec840c80df01f13 /eclass/python.eclass | |
parent | Version bump (diff) | |
download | gentoo-7ebd9fec81aac3ea0814c9c45e1cfc806ba00a30.tar.gz gentoo-7ebd9fec81aac3ea0814c9c45e1cfc806ba00a30.tar.bz2 gentoo-7ebd9fec81aac3ea0814c9c45e1cfc806ba00a30.zip |
python.eclass, distutils.eclass: Ban for EAPI=6
Ban deprecated python and distutils eclasses to avoid being accidentally
enabled in EAPI 6.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
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 |