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 8FA0B139694 for ; Fri, 5 May 2017 06:53:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31244E0BF1; Fri, 5 May 2017 06:53:24 +0000 (UTC) Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (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 D2F3AE0BC2 for ; Fri, 5 May 2017 06:53:23 +0000 (UTC) Received: by mail-ua0-x22c.google.com with SMTP id e55so23267594uaa.2 for ; Thu, 04 May 2017 23:53:23 -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=Fj5GJBnAb1rIvPl1wYHv0LybaU3dUUgJ7yDQOWI/Oaw=; b=sa4Qcn+PL4Kb6VLKLpVdBNZXBnyjM/zAIC9Tu7IbxWlERpTpC4j47PMbS+YSOrBAxa k3SN/rEfWZvxkZEC2g2fq2aW6C/WX0Fv+jISxo/pPB3sD+Qm3BoIj0q76bOhKg7IzglJ ZP2IV3Abuv+IkTb190dnR65laR4plC05TcUbnxHXD9mWBerxP/l1++8eSNIyGPNA5/tF LVFRPZcnSO3tC7Z5cywyXx4KGvocMJ4YogV/azcrDp0wPSo1o00EOPpqaQ4WjQP/hL6i qbyKYA7v2SjP9PK9C+Q8Fi+pDZ9zv6N6NP+pACRpqBaCWkYgbHmXmN3UKhS1PjAZ0uVr z47g== 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=Fj5GJBnAb1rIvPl1wYHv0LybaU3dUUgJ7yDQOWI/Oaw=; b=j4NhDPYp9NSEHzCQgf5T06VmNcVM9kFZsCHjiegHi1yr6kAJ2n4CkjbVU3KoocBKNw ANk+0omFMpPvfehrJUsod1asAkpXT3VruyrHhn5AKOnZs0izW4nSH5ROf7UJ6B4I1zGj qraRS4D3rD2FBUeY6pxUZ/phI5XXFWfXh+AyktWEYCddHyoFO40qEaaGDdsiXbUFSTHa S4AYJV39pM8c9bhMF29BjCZtNPFoShGKVf1TQ4yLVExAJd4Bn+3LZ8xUW70zs4ftDbOy ncIBwFQJea8jel1eBJNKVPUy8pOtPRot/aEvCwjbdJYHUt5MhGjGBvp5cy733W4U+lta Tt6g== X-Gm-Message-State: AN3rC/7HWH5+ielDCtm6a9437ZWYayowz0UHKMcKHTq3JUMOMyOCGLUL ExY6CVdTcLLb2wg4BJVBIy83pKk8bA== X-Received: by 10.176.74.211 with SMTP id t19mr24381623uae.89.1493967203063; Thu, 04 May 2017 23:53:23 -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 23:53:22 -0700 (PDT) In-Reply-To: References: <20170502214840.10124-1-zmedico@gentoo.org> From: Zac Medico Date: Thu, 4 May 2017 23:53:22 -0700 X-Google-Sender-Auth: b_bRGmo5t61n-zNJfdoUSeb43D8 Message-ID: Subject: Re: [gentoo-dev] Re: [PATCH] python-utils-r1.eclass: support PYTHON_IMPLS_NO_STRICT variable To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= Cc: gentoo-dev@lists.gentoo.org, python@gentoo.org Content-Type: multipart/alternative; boundary=f403045f8af271dd8a054ec15832 X-Archives-Salt: 678be343-612d-451c-aa12-fa5c07b7914d X-Archives-Hash: ddd817d1084041e9430d85d388d1e2b1 --f403045f8af271dd8a054ec15832 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, May 4, 2017 at 10:29 PM, Micha=C5=82 G=C3=B3rny = wrote: > Dnia 4 maja 2017 22:34:56 CEST, Zac Medico > napisa=C5=82(a): > >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=3D( > >> ) > >> 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=3D1 > >> +# @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. > > If there's no explicit hurry, I'd like to commit it along with other > python patch I'll be writing soon, to avoid multiple cache regens. > That works for me. Thank you! --=20 Thanks, Zac --f403045f8af271dd8a054ec15832 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, May 4, 2017 at 10:29 PM, Micha=C5=82 G=C3=B3rny <<= a href=3D"mailto:mgorny@gentoo.org" target=3D"_blank">mgorny@gentoo.org= > wrote:
=
Dnia 4 maja 2017 22:34:56 CEST, Zac Medico <zmedico@gentoo.org> napisa=C5=82(a):
>On Tue, 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<= br> >> which can involve revisions of this eclass that support different<= br> >> python implementations.
>> ---
>>=C2=A0 eclass/python-utils-r1.eclass | 16 ++++++++++++++++
>>=C2=A0 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=3D(
>>=C2=A0 )
>>=C2=A0 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 i= s
>> +# that the ebuilds are intended to be used within multiple contex= ts
>> +# which can involve revisions of this eclass that support differe= nt
>> +# 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 =C2=A0fi
>>=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 =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 =C2=A0die "Invalid implementation in PYTHON_COMPAT:<= br> >> ${impl}"
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0esac
>>=C2=A0 }
>> --
>> 2.10.2
>>
>>
>If nobody objects, I'd like to merge this sometime next week.

If there's no explicit hurry, I'd like to commit it alo= ng with other python patch I'll be writing soon, to avoid multiple cach= e regens.
<= /blockquote>

That works for me. Thank you!
--=
Than= ks,
Zac
--f403045f8af271dd8a054ec15832--