From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22437: Fixing package-with-python2 Date: Sun, 07 Feb 2016 21:39:42 +0100 Message-ID: <87vb60s19t.fsf__28043.8332622454$1454877759$gmane$org@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]:49952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSW7n-0004rg-Tw for bug-guix@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 1aSW7m-000074-Pw for bug-guix@gnu.org; Sun, 07 Feb 2016 15:40:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSW7m-00006z-Kw for bug-guix@gnu.org; Sun, 07 Feb 2016 15:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSW7m-0007ph-Gl for bug-guix@gnu.org; Sun, 07 Feb 2016 15:40:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160207110929.GA4968@debian> (Andreas Enge's message of "Sun, 7 Feb 2016 12:09:29 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=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.