From: Efraim Flashner <efraim@flashner.co.il>
To: Cyril Roelandt <tipecaml@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] guix pypi importer: Add ending as an optional argument to pypi-uri.
Date: Tue, 5 Jan 2016 11:58:37 +0200 [thread overview]
Message-ID: <20160105115837.24eaf361@debian-netbook> (raw)
In-Reply-To: <568B1414.9010107@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]
On Tue, 5 Jan 2016 01:53:40 +0100
Cyril Roelandt <tipecaml@gmail.com> wrote:
> 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?
>
It already does that with the patch If there's no change then it defaults to .tar.gz. Could part of the patch be changed to:
#:optional (ending ".tar.gz")) ?
> 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?
>
I like extension too.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-01-05 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-03 21:36 [PATCH] guix pypi importer: Add ending as an optional argument to pypi-uri swedebugia
2016-01-03 21:53 ` swedebugia
2016-01-05 0:53 ` Cyril Roelandt
2016-01-05 9:58 ` Efraim Flashner [this message]
2016-01-05 10:23 ` Cyril Roelandt
2016-01-08 18:14 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160105115837.24eaf361@debian-netbook \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=tipecaml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).