From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E13F139694 for ; Thu, 4 May 2017 20:35:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0E63E0C5C; Thu, 4 May 2017 20:34:57 +0000 (UTC) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7491BE0C13 for ; Thu, 4 May 2017 20:34:57 +0000 (UTC) Received: by mail-vk0-x232.google.com with SMTP id q78so15379865vke.3 for ; Thu, 04 May 2017 13:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2+PttGFg5lq+gjYKxCAGQuSN/UcY696f1t5siKThMZc=; b=MnqwXL2yjb3+Z19tnux+oufLpAKbqwww6cDGBRKin98rONO6O84x7iXHRBMF2r0RO1 Aj2gp/kOen8bY+6QqNsqiBfS18vpjEbADWdYINWcnBaesczEyDx3jhc8LhHk1hr+SoEz 03Dh5QhJD1z16rVJhqPkABb3/jMh9U++kEX2W18vIpBOrzx/Z8HYp+oNu6vY4zRiHUjE lGUPhMZPqHM8/Z2GrLhleGnzqa7eLgTO5XeLfY7JkR1BXc7LctxqvTNRZYH3WMWaT9xh vt53n/4GpNmtPDuj65ftvwwWYNUp0vSLO/Bkxy0Osrf93QWoj9+eOT30M69H+Ha9m9QB AhhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2+PttGFg5lq+gjYKxCAGQuSN/UcY696f1t5siKThMZc=; b=ZkxxO4EGWXsKZFTPyT6uIs8tcnrrPBHYpuczhOISAkMGCebp5OfEnU4bI7XTCdYJ1k EEshd2gT3839CKIgCt8Wo/OZ75xNBYh5X+6GF4KFQwhHf7K53ReC2n/1+ohHx7zuI1T2 UJz8QmZv9yDj5BZewXz4jfbSN0AstCN5XajSPc5xeo52W3KgirX56xhFc0y/2kvjbZjR 9GfM19HV+AFEOXrSQKbm1A1ISq/9tKBLSXSNybhbsM8M/1cUqmOkLQCRagPwQTdDxJzx RX5BqGcTcJjQkuWVWvFpKg2D1dNxK6im1kQqe8mELSvQDmsxMnJYSWD+CumXnoa6n624 HbNg== X-Gm-Message-State: AN3rC/5Z8oW9eCWNLm/HaPLPXSzPXM6nNG7cuZeuhTd7bSw2JBhzkgYL +QW2gdQrAUPECzvF22fFaasFF37kJg== X-Received: by 10.31.57.14 with SMTP id g14mr17254968vka.40.1493930096653; Thu, 04 May 2017 13:34:56 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Sender: zmedico@gmail.com Received: by 10.176.4.199 with HTTP; Thu, 4 May 2017 13:34:56 -0700 (PDT) In-Reply-To: <20170502214840.10124-1-zmedico@gentoo.org> References: <20170502214840.10124-1-zmedico@gentoo.org> From: Zac Medico Date: Thu, 4 May 2017 13:34:56 -0700 X-Google-Sender-Auth: pgMG386QVoZKJadHYuiOGPTonr0 Message-ID: Subject: [gentoo-dev] Re: [PATCH] python-utils-r1.eclass: support PYTHON_IMPLS_NO_STRICT variable To: gentoo-dev@lists.gentoo.org Cc: python@gentoo.org, Zac Medico Content-Type: multipart/alternative; boundary=001a1144b58ebafa03054eb8b4ed X-Archives-Salt: 8e929d22-22a3-4dad-9413-d9f4f3eb4883 X-Archives-Hash: d3dfa8ab1a034de1b1fb417ef88c4dc0 --001a1144b58ebafa03054eb8b4ed Content-Type: text/plain; charset=UTF-8 On Tue, May 2, 2017 at 2:48 PM, Zac Medico wrote: > This is intended to be set by the user when using ebuilds that may > have unknown implementations in PYTHON_COMPAT. The assumption is > that the ebuilds are intended to be used within multiple contexts > which can involve revisions of this eclass that support different > python implementations. > --- > eclass/python-utils-r1.eclass | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass > index 66a359e..1846da3 100644 > --- a/eclass/python-utils-r1.eclass > +++ b/eclass/python-utils-r1.eclass > @@ -47,6 +47,21 @@ _PYTHON_ALL_IMPLS=( > ) > readonly _PYTHON_ALL_IMPLS > > +# @ECLASS-VARIABLE: PYTHON_IMPLS_NO_STRICT > +# @DESCRIPTION: > +# Tolerate unknown implementations in PYTHON_COMPAT. > +# > +# This is intended to be set by the user when using ebuilds that may > +# have unknown implementations in PYTHON_COMPAT. The assumption is > +# that the ebuilds are intended to be used within multiple contexts > +# which can involve revisions of this eclass that support different > +# python implementations. > +# > +# Example: > +# @CODE > +# PYTHON_IMPLS_NO_STRICT=1 > +# @CODE > + > # @FUNCTION: _python_impl_supported > # @USAGE: > # @INTERNAL > @@ -79,6 +94,7 @@ _python_impl_supported() { > fi > ;; > *) > + [[ -n ${PYTHON_IMPLS_NO_STRICT} ]] && return 1 > die "Invalid implementation in PYTHON_COMPAT: > ${impl}" > esac > } > -- > 2.10.2 > > If nobody objects, I'd like to merge this sometime next week. -- Thanks, Zac --001a1144b58ebafa03054eb8b4ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, May 2, 2017 at 2:48 PM, Zac Medico <zmedico@gentoo.org>= wrote:
This is intended to be set by the= user when using ebuilds that may
have unknown implementations in PYTHON_COMPAT. The assumption is
that the ebuilds are intended to be used within multiple contexts
which can involve revisions of this eclass that support different
python implementations.
---
=C2=A0eclass/python-utils-r1.eclass | 16 ++++++++++++++++
=C2=A01 file changed, 16 insertions(+)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 66a359e..1846da3 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -47,6 +47,21 @@ _PYTHON_ALL_IMPLS=3D(
=C2=A0)
=C2=A0readonly _PYTHON_ALL_IMPLS

+# @ECLASS-VARIABLE: PYTHON_IMPLS_NO_STRICT
+# @DESCRIPTION:
+# Tolerate unknown implementations in PYTHON_COMPAT.
+#
+# This is intended to be set by the user when using ebuilds that may
+# have unknown implementations in PYTHON_COMPAT. The assumption is
+# that the ebuilds are intended to be used within multiple contexts
+# which can involve revisions of this eclass that support different
+# python implementations.
+#
+# Example:
+# @CODE
+# PYTHON_IMPLS_NO_STRICT=3D1
+# @CODE
+
=C2=A0# @FUNCTION: _python_impl_supported
=C2=A0# @USAGE: <impl>
=C2=A0# @INTERNAL
@@ -79,6 +94,7 @@ _python_impl_supported() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0[[ -n ${PYTHON_IMPLS_NO_STRICT} ]] && return 1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 die "Invalid implementation in PYTHON_COMPAT: ${impl}"=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 esac
=C2=A0}
--
2.10.2


If nobody objects, = I'd like to merge this sometime next week.
--
Thanks,
Zac
--001a1144b58ebafa03054eb8b4ed--