From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#22437: Fixing package-with-python2 Date: Sun, 07 Feb 2016 21:39:42 +0100 Message-ID: <87vb60s19t.fsf@gnu.org> References: <87vb68nkyb.fsf@gnu.org> <87twlqxjsc.fsf@gnu.org> <20160207110929.GA4968@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSW7n-0004rf-T2 for guix-devel@gnu.org; Sun, 07 Feb 2016 15:40:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSW7k-00006X-AP for guix-devel@gnu.org; Sun, 07 Feb 2016 15:40:03 -0500 In-Reply-To: <20160207110929.GA4968@debian> (Andreas Enge's message of "Sun, 7 Feb 2016 12:09:29 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel , 22437@debbugs.gnu.org Andreas Enge skribis: > this looks really good, but I do not understand why we need the > additional private variable, for instance %python-cython: Glad you noticed. :-) > On Wed, Feb 03, 2016 at 09:47:15AM +0100, Ludovic Court=C3=A8s wrote: >> -(define-public python-cython >> +(define %python-cython >> (package >> (name "python-cython") >> (version "0.23.4") >> @@ -2946,8 +2946,13 @@ programming language and the extended Cython prog= ramming language. It makes >> writing C extensions for Python as easy as Python itself.") >> (license asl2.0))) >>=20=20 >> +(define-public python-cython >> + (package >> + (inherit %python-cython) >> + (properties `((python2-variant . ,(delay python2-cython)))))) >> + >> (define-public python2-cython >> - (package (inherit (package-with-python2 python-cython)) >> + (package (inherit (package-with-python2 %python-cython)) >> (name "python2-cython") >> (inputs > > If python2-cython inherits from (package-with-python2 python-cython), > is not the only difference that it keeps the properties field? And > would this not be harmless, as we are not going to call package-with-pyth= on2 > again? Or would this create a circular dependency with (delay python2-cyt= hon)? So I thought! In hindsight, I think this is unnecessary. > (In C or Pascal, this would not be a problem I can=E2=80=99t wait to see =E2=80=9CPasix=E2=80=9D! :-) Ludo=E2=80=99.