From: ludo@gnu.org (Ludovic Courtès)
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] import: Add PyPI importer.
Date: Tue, 30 Sep 2014 09:13:26 +0200 [thread overview]
Message-ID: <8761g5eg2x.fsf@gnu.org> (raw)
In-Reply-To: <871tqtd5dv.fsf@gmail.com> (Alex Kost's message of "Tue, 30 Sep 2014 09:49:48 +0400")
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
Alex Kost <alezost@gmail.com> skribis:
> David Thompson (2014-09-30 03:31 +0400) wrote:
>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>>> David Thompson <dthompson2@worcester.edu> skribis:
>>>
>>>> Oh yeah, almost forgot about the Automake rule! My autotools skills are
>>>> weak so I'm not sure how to write this. Could you point me in the right
>>>> direction?
>>>
>>> In configure.ac, do something like:
>>>
>>> GUILE_MODULE_AVAILABLE([have_guile_json], [(json)])
>>> AM_CONDITIONAL([HAVE_GUILE_JSON], [text "x$have_guile_json" = "xyes"])
>>>
>>> and in Makefile.am:
>>>
>>> if HAVE_GUILE_JSON
>>> TESTS += tests/pypi.scm
>>> endif
>>
>> Done and pushed! Thanks!
Woo!
> Hello, I don't have guile-json and "make" has failed for me because
> (guix import pypi) wants json module. Is it required now?
>
> Perhaps it would be safe (?) to adjust “Makefile.am” like this:
Alternately, we could do this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 403 bytes --]
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index d0e776e..da8bd04 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -23,7 +23,7 @@
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
#:use-module (rnrs bytevectors)
- #:use-module (json)
+ #:autoload (json) (json->scm)
#:use-module (web uri)
#:use-module (guix utils)
#:use-module (guix import utils)
[-- Attachment #3: Type: text/plain, Size: 305 bytes --]
That way, the importer would still be compiled (with a warning) and
installed, so that if the user eventually installed guile-json, it will
work.
However, that would fail with old Guile versions:
<http://bugs.gnu.org/12202>.
So your patch is probably the right way. OK to commit!
Ludo’.
next prev parent reply other threads:[~2014-09-30 7:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-27 21:15 [PATCH] import: Add PyPI importer David Thompson
2014-09-27 21:19 ` David Thompson
2014-09-27 21:35 ` Ludovic Courtès
2014-09-29 11:23 ` David Thompson
2014-09-29 12:24 ` Ludovic Courtès
2014-09-29 23:31 ` David Thompson
2014-09-30 5:49 ` Alex Kost
2014-09-30 7:13 ` Ludovic Courtès [this message]
2014-09-30 11:55 ` David Thompson
2014-09-27 21:49 ` Ludovic Courtès
2014-09-28 23:48 ` David Thompson
2014-09-29 7:04 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761g5eg2x.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=alezost@gmail.com \
--cc=guix-devel@gnu.org \
/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 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.