From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#22437: Fixing package-with-python2 Date: Sun, 07 Feb 2016 10:32:44 +0100 Message-ID: <87h9hkx3ur.fsf__35938.4955525913$1454837602$gmane$org@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]:43903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSLiI-0006Ss-OI for bug-guix@gnu.org; Sun, 07 Feb 2016 04:33:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSLiH-0003V9-W7 for bug-guix@gnu.org; Sun, 07 Feb 2016 04:33:02 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSLiH-0003V5-TQ for bug-guix@gnu.org; Sun, 07 Feb 2016 04:33:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSLiH-0004Aj-Jz for bug-guix@gnu.org; Sun, 07 Feb 2016 04:33:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20160207101720.4a3be103@debian-netbook> 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: 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