* [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
@ 2016-01-06 17:21 swedebugia
2016-01-06 18:31 ` Eric Bavier
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: swedebugia @ 2016-01-06 17:21 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 95 bytes --]
I corrected as suggested by cyril and efraim.
I hope it is acceptable now.
thanks,
swedebugia
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-guix-build-system-python-Add-an-optional-argument-EX.patch --]
[-- Type: text/x-diff; name=0001-guix-build-system-python-Add-an-optional-argument-EX.patch, Size: 1261 bytes --]
From ce08897ccea3122a1a119bd292648b0ab21b70bf Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@riseup.net>
Date: Wed, 6 Jan 2016 17:48:28 +0100
Subject: [PATCH] guix: build-system: python: Add an optional argument
EXTENSION to pypi-uri
---
guix/build-system/python.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm
index 2532210..8e52d31 100644
--- a/guix/build-system/python.scm
+++ b/guix/build-system/python.scm
@@ -41,12 +41,15 @@
;;
;; Code:
-(define (pypi-uri name version)
+(define* (pypi-uri name version
+ #:optional
+ (extension ".tar.gz"))
"Return a URI string for the Python package hosted on the Python Package
-Index (PyPI) corresponding to NAME and VERSION."
+Index (PyPI) corresponding to NAME, VERSION and EXTENSION which defaults to
+'.tar.gz' as most packages in the archive has this extension."
(string-append "https://pypi.python.org/packages/source/"
(string-take name 1) "/" name "/"
- name "-" version ".tar.gz"))
+ name "-" version extension))
(define %python-build-system-modules
;; Build-side modules imported by default.
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
2016-01-06 17:21 [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri swedebugia
@ 2016-01-06 18:31 ` Eric Bavier
2016-01-06 19:32 ` Cyril Roelandt
2016-01-08 18:20 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: Eric Bavier @ 2016-01-06 18:31 UTC (permalink / raw)
To: swedebugia; +Cc: guix-devel, guix-devel-bounces+ericbavier=openmailbox.org
On 2016-01-06 11:21, swedebugia@riseup.net wrote:
> I corrected as suggested by cyril and efraim.
>
> I hope it is acceptable now.
> --- a/guix/build-system/python.scm
> +++ b/guix/build-system/python.scm
> @@ -41,12 +41,15 @@
> ;;
> ;; Code:
>
> -(define (pypi-uri name version)
> +(define* (pypi-uri name version
> + #:optional
> + (extension ".tar.gz"))
> "Return a URI string for the Python package hosted on the Python
> Package
> -Index (PyPI) corresponding to NAME and VERSION."
> +Index (PyPI) corresponding to NAME, VERSION and EXTENSION which
> defaults to
> +'.tar.gz' as most packages in the archive has this extension."
s/has/have/
Otherwise LGTM.
--
`~Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
2016-01-06 17:21 [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri swedebugia
2016-01-06 18:31 ` Eric Bavier
@ 2016-01-06 19:32 ` Cyril Roelandt
2016-01-06 19:47 ` Eric Bavier
2016-01-08 18:20 ` Ludovic Courtès
2 siblings, 1 reply; 6+ messages in thread
From: Cyril Roelandt @ 2016-01-06 19:32 UTC (permalink / raw)
To: guix-devel
The patch looks good.
On 01/06/2016 06:21 PM, swedebugia@riseup.net wrote:
> From: swedebugia <swedebugia@riseup.net>
Do we require people to use their real names or not? Not sure what our
policy about this is.
Cyril.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
2016-01-06 19:32 ` Cyril Roelandt
@ 2016-01-06 19:47 ` Eric Bavier
0 siblings, 0 replies; 6+ messages in thread
From: Eric Bavier @ 2016-01-06 19:47 UTC (permalink / raw)
To: Cyril Roelandt; +Cc: guix-devel, guix-devel-bounces+ericbavier=openmailbox.org
On 2016-01-06 13:32, Cyril Roelandt wrote:
> On 01/06/2016 06:21 PM, swedebugia@riseup.net wrote:
>> From: swedebugia <swedebugia@riseup.net>
>
> Do we require people to use their real names or not? Not sure what our
> policy about this is.
Ludo has said in the past that pseudonyms are fine:
https://lists.gnu.org/archive/html/guix-devel/2015-12/msg00814.html
--
`~Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
2016-01-06 17:21 [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri swedebugia
2016-01-06 18:31 ` Eric Bavier
2016-01-06 19:32 ` Cyril Roelandt
@ 2016-01-08 18:20 ` Ludovic Courtès
2016-01-08 19:10 ` swedebugia
2 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2016-01-08 18:20 UTC (permalink / raw)
To: swedebugia; +Cc: guix-devel
swedebugia@riseup.net skribis:
> I corrected as suggested by cyril and efraim.
>
> I hope it is acceptable now.
Oops, I was reading messages older-first, and I didn’t see that there
had been a followup to the previous discussion. Sorry about that!
Commit 17ad0a2 does the same as what you posted.
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri
2016-01-08 18:20 ` Ludovic Courtès
@ 2016-01-08 19:10 ` swedebugia
0 siblings, 0 replies; 6+ messages in thread
From: swedebugia @ 2016-01-08 19:10 UTC (permalink / raw)
To: ludo; +Cc: guix-devel
On 2016-01-08 19:20, ludo@gnu.org wrote:
> swedebugia@riseup.net skribis:
>
>> I corrected as suggested by cyril and efraim.
>>
>> I hope it is acceptable now.
>
> Oops, I was reading messages older-first, and I didn’t see that there
> had been a followup to the previous discussion. Sorry about that!
np!
> Commit 17ad0a2 does the same as what you posted.
:)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-01-08 19:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06 17:21 [PATCH] guix: build-system: python: Add an optional argument EXTENSION to pypi-uri swedebugia
2016-01-06 18:31 ` Eric Bavier
2016-01-06 19:32 ` Cyril Roelandt
2016-01-06 19:47 ` Eric Bavier
2016-01-08 18:20 ` Ludovic Courtès
2016-01-08 19:10 ` swedebugia
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.