diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-09-16 17:58:15 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-09-16 17:58:15 +0000 |
commit | dd899c30f3ac7ebbaa6c85c01157b76c716dfe4a (patch) | |
tree | 9a3ec6fe2e140491ff026f9560f86edecdaf9a53 /eclass | |
parent | Place .properties files into the aspectj.jar file. (diff) | |
download | gentoo-2-dd899c30f3ac7ebbaa6c85c01157b76c716dfe4a.tar.gz gentoo-2-dd899c30f3ac7ebbaa6c85c01157b76c716dfe4a.tar.bz2 gentoo-2-dd899c30f3ac7ebbaa6c85c01157b76c716dfe4a.zip |
Deprecate python_get_PYTHON and python_get_EPYTHON.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/python-utils-r1.eclass | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 958b52e6b7af..b579088d864d 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.965 2013/09/15 19:29:11 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.966 2013/09/16 17:58:15 mgorny Exp $ + + 16 Sep 2013; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass: + Deprecate python_get_PYTHON and python_get_EPYTHON. 15 Sep 2013; Pacho Ramos <pacho@gentoo.org> gnome2-utils.eclass: Support gtk+-2.24.20 query immodules (#476100) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 3a1c4ee5f463..ed6fc0308ce4 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 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.34 2013/09/08 14:56:29 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.35 2013/09/16 17:58:15 mgorny Exp $ # @ECLASS: python-utils-r1 # @MAINTAINER: @@ -34,7 +34,7 @@ fi if [[ ! ${_PYTHON_UTILS_R1} ]]; then -inherit multilib toolchain-funcs +inherit eutils multilib toolchain-funcs # @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS # @INTERNAL @@ -377,6 +377,10 @@ python_export() { python_get_PYTHON() { debug-print-function ${FUNCNAME} "${@}" + eqawarn '$(python_get_PYTHON) is discouraged since all standard environments' >&2 + eqawarn 'have PYTHON exported anyway. Please use ${PYTHON} instead.' >&2 + eqawarn 'python_get_PYTHON will be removed on 2013-10-16.' >&2 + python_export "${@}" PYTHON echo "${PYTHON}" } @@ -391,6 +395,10 @@ python_get_PYTHON() { python_get_EPYTHON() { debug-print-function ${FUNCNAME} "${@}" + eqawarn '$(python_get_EPYTHON) is discouraged since all standard environments' >&2 + eqawarn 'have EPYTHON exported anyway. Please use ${EPYTHON} instead.' >&2 + eqawarn 'python_get_EPYTHON will be removed on 2013-10-16.' >&2 + python_export "${@}" EPYTHON echo "${EPYTHON}" } |