commit: b3bbaca3a237972002c260e8e05795ea0ed9bf9e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 19:41:29 2015 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 19 15:13:35 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3bbaca3
python-utils-r1.eclass: Ban installation helpers in EAPIs < 5
Ban python_do* and python_new* helpers in EAPIs older than 5. We should
ban them in python-any-r1 uses, actually but that would break
dev-python/pypy* ebuilds as they are written now.
eclass/python-utils-r1.eclass | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index e690e09..99ee58b 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -662,6 +662,9 @@ python_newexe() {
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is
null).'
[[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <path> <new-name>"
+ if [[ ${EAPI:-0} == [01234] ]]; then
+ die "python_do* and python_new* helpers are banned in EAPIs
older than 5."
+ fi
local wrapd=${python_scriptroot:-${DESTTREE}/bin}
@@ -789,6 +792,9 @@ python_domodule() {
debug-print-function ${FUNCNAME} "${@}"
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is
null).'
+ if [[ ${EAPI:-0} == [01234] ]]; then
+ die "python_do* and python_new* helpers are banned in EAPIs
older than 5."
+ fi
local d
if [[ ${python_moduleroot} == /* ]]; then
@@ -827,6 +833,9 @@ python_doheader() {
debug-print-function ${FUNCNAME} "${@}"
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is
null).'
+ if [[ ${EAPI:-0} == [01234] ]]; then
+ die "python_do* and python_new* helpers are banned in EAPIs
older than 5."
+ fi
local d PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR}
[[ ${PYTHON_INCLUDEDIR} ]] || python_export PYTHON_INCLUDEDIR