From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: bug#22437: Fixing package-with-python2 Date: Sun, 07 Feb 2016 10:32:44 +0100 Message-ID: <87h9hkx3ur.fsf@elephly.net> References: <87vb68nkyb.fsf@gnu.org> <87twlqxjsc.fsf@gnu.org> <20160207101720.4a3be103@debian-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSLiH-0006R5-32 for guix-devel@gnu.org; Sun, 07 Feb 2016 04:33:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSLiG-0003Uk-6E for guix-devel@gnu.org; Sun, 07 Feb 2016 04:33:01 -0500 In-reply-to: <20160207101720.4a3be103@debian-netbook> 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: Efraim Flashner Cc: guix-devel , 22437@debbugs.gnu.org Efraim Flashner writes: > On Wed, 03 Feb 2016 09:47:15 +0100 > ludo@gnu.org (Ludovic Courtès) wrote: > >> ludo@gnu.org (Ludovic Courtès) skribis: >> >> > An idea I haven’t taken the time to test yet would be to use >> > ‘properties’: >> > >> > (define python-foobar ;with Python 3 >> > (package >> > (name "foobar") >> > ;; Specify which Python 2 variant to use. >> > (properties `((python2-variant . ,(delay python2-foobar)))))) > > This part I don't get. What's the period for? The “properties” field holds a regular alist. Here the alist has one entry (a pair) with a symbol “python2-variant” as the key, and “,(delay python2-foobar)” as its value. The period is needed for the “dotted list” syntax, which is used to distinguish a pair (or an improper list) from a well-formed list. ~~ Ricardo