From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Fixing package-with-python2 (was: Package transformations) Date: Mon, 1 Feb 2016 11:49:34 -0500 Message-ID: References: <20160201183538.531633e3@debian-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQHfU-0001w2-7a for guix-devel@gnu.org; Mon, 01 Feb 2016 11:49:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQHfT-0002mv-88 for guix-devel@gnu.org; Mon, 01 Feb 2016 11:49:36 -0500 Received: from mail-yk0-x232.google.com ([2607:f8b0:4002:c07::232]:33852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQHfT-0002mW-31 for guix-devel@gnu.org; Mon, 01 Feb 2016 11:49:35 -0500 Received: by mail-yk0-x232.google.com with SMTP id u9so24997013ykd.1 for ; Mon, 01 Feb 2016 08:49:34 -0800 (PST) In-Reply-To: <20160201183538.531633e3@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 On Mon, Feb 1, 2016 at 11:35 AM, Efraim Flashner wrote: > Not all of our python packages are in python.scm. Currently in > guix/build-system/python.scm we have: > > (define package-with-python2 > ;; Note: delay call to 'default-python2' until after the 'arguments' field > ;; of packages is accessed to avoid a circular dependency when evaluating > ;; the top-level of (gnu packages python). > (package-with-explicit-python (delay (default-python2)) > "python-" "python2-")) > > Excuse the code, but I think we're looking for something like: > > (define package-with-python2 > (if (exists? python2-foo) > (python2-foo) > (package-with-explicit-python (delay (default-python2)) > "python-" "python2-")) I believe you just said the same thing I said. We're on the same page. - Dave