Skip to content

Commit

Permalink
python.eclass, distutils.eclass: Ban for EAPI=6
Browse files Browse the repository at this point in the history
Ban deprecated python and distutils eclasses to avoid being accidentally
enabled in EAPI 6.
  • Loading branch information
mgorny committed Nov 13, 2015
1 parent b72c3ed commit 7ebd9fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eclass/distutils.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down
4 changes: 4 additions & 0 deletions eclass/python.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ebd9fe

Please sign in to comment.