From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: Re: [PATCH] guix pypi importer: Add ending as an optional argument to pypi-uri. Date: Tue, 5 Jan 2016 01:53:40 +0100 Message-ID: <568B1414.9010107@gmail.com> References: <1451856997-13507-1-git-send-email-swedebugia@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGFsh-0002AA-7j for guix-devel@gnu.org; Mon, 04 Jan 2016 19:53:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGFsd-0007sz-7T for guix-devel@gnu.org; Mon, 04 Jan 2016 19:53:47 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:38075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGFsd-0007st-1S for guix-devel@gnu.org; Mon, 04 Jan 2016 19:53:43 -0500 Received: by mail-wm0-x232.google.com with SMTP id b14so6738841wmb.1 for ; Mon, 04 Jan 2016 16:53:42 -0800 (PST) In-Reply-To: <1451856997-13507-1-git-send-email-swedebugia@riseup.net> 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: guix-devel@gnu.org On 01/03/2016 10:36 PM, swedebugia wrote: > --- > guix/build-system/python.scm | 17 ++++++++++++----- > 1 file changed, 12 insertions(+), 5 deletions(-) > > diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm > index 2532210..09074ce 100644 > --- a/guix/build-system/python.scm > +++ b/guix/build-system/python.scm > @@ -41,13 +41,20 @@ > ;; > ;; Code: > > -(define (pypi-uri name version) > +(define* (pypi-uri name version > + #:optional > + ending) Could we use "tar.gz" as the default value of ENDING as to avoid the need for a test in this function? Also, it would be nice to update the pypi importer as well, so that it detects the right suffix. I also think "ending" should be renamed to "extension" or something like that. WDYT? Cyril.