mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user