summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-02-19 18:52:06 +0000
committerMichał Górny <mgorny@gentoo.org>2015-02-19 18:52:06 +0000
commit15b2c01a56510b1730b1ae4fb23412f699a0f064 (patch)
tree9687948710bd3ddc8ceff57683f81706204e68ec /eclass/python-utils-r1.eclass
parentBump to EAPI 5 and drop py26 and py32 support. (diff)
downloadgentoo-2-15b2c01a56510b1730b1ae4fb23412f699a0f064.tar.gz
gentoo-2-15b2c01a56510b1730b1ae4fb23412f699a0f064.tar.bz2
gentoo-2-15b2c01a56510b1730b1ae4fb23412f699a0f064.zip
Deprecate EAPI=4 support.
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass18
1 files changed, 17 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index e601720e0674..1dd367a04588 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.76 2015/02/19 17:22:25 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.77 2015/02/19 18:52:06 mgorny Exp $
# @ECLASS: python-utils-r1
# @MAINTAINER:
@@ -1127,6 +1127,22 @@ python_export_utf8_locale() {
return 0
}
+# @FUNCTION: _python_check_EAPI
+# @INTERNAL
+# @DESCRIPTION:
+# Check whether the ebuild is not using deprecated EAPI 4. Output
+# a QA warning if it does.
+_python_check_EAPI() {
+ if [[ ${EAPI} == 4 && ! ${_PYTHON_WARNED_EAPI} ]]; then
+ eqawarn "This package is using still using EAPI=4. This results in package"
+ eqawarn "dependencies violating PMS and causing issues for package managers."
+ eqawarn "For this reason, using EAPI=4 in new Python packages will be banned"
+ eqawarn "on 2015-03-20 (2 years and 6 months after approving EAPI 5)."
+
+ _PYTHON_WARNED_EAPI=1
+ fi
+}
+
# -- python.eclass functions --
_python_check_dead_variables() {