From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5C0431384B4 for ; Fri, 27 Nov 2015 13:17:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A59D21C113; Fri, 27 Nov 2015 13:16:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B36821C113 for ; Fri, 27 Nov 2015 13:16:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AED1340545 for ; Fri, 27 Nov 2015 13:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8343EB5D for ; Fri, 27 Nov 2015 13:16:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1448629512.357b831b39a9108f1680946b09b8fcf3c82f3a92.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-eapi6 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-utils-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 357b831b39a9108f1680946b09b8fcf3c82f3a92 X-VCS-Branch: python-eapi6 Date: Fri, 27 Nov 2015 13:16:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0f5c4fa5-ab9b-460b-8d2d-2dde241a6746 X-Archives-Hash: 0aa50fcba0f337872d40ad66c97ea29c commit: 357b831b39a9108f1680946b09b8fcf3c82f3a92 Author: Michał Górny gentoo org> AuthorDate: Wed Nov 18 19:41:29 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 27 13:05:12 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=357b831b 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 58c82bd..d4c38f2 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -665,6 +665,9 @@ python_newexe() { [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).' [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} " + 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} @@ -792,6 +795,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 @@ -830,6 +836,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