From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: swedebugia@riseup.net, "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Trying to fix an error in the pypi-importer
Date: Thu, 31 Dec 2015 07:27:02 +1000 [thread overview]
Message-ID: <56844C26.7060602@uq.edu.au> (raw)
In-Reply-To: <56844BF3.10701@uq.edu.au>
Hi,
On 31/12/15 05:53, swedebugia@riseup.net wrote:
> Hi :)
>
> I am trying to fix this error in the pypi-importer:
[..]
>
> I read up on if-else with Guile and changed it to:
> (define (pypi-uri name version ending)
> "Return a URI string for the Python package hosted on the Python
> Package
> Index (PyPI) corresponding to NAME and VERSION."
> (if (zero? ending)
> (string-append "https://pypi.python.org/packages/source/"
> (string-take name 1) "/" name "/"
> name "-" version ".tar.gz"))
> (else
> (string-append "https://pypi.python.org/packages/source/"
> (string-take name 1) "/" name "/"
> name "-" version "." ending )))
You should just omit the (else and matching bracket to avoid the error.
>
> Will this work?
> I did a make and got:
> GUILEC guix/build-system/python.go
> guix/build-system/python.scm:51:2: warning: possibly unbound variable
> `else'
> wrote `guix/build-system/python.go'
For testing, there's no need to run make if you don't want, you can just
run an the import and the new code will be used.
Seems like a good idea to me overall.
ben
next prev parent reply other threads:[~2015-12-30 21:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 19:53 Trying to fix an error in the pypi-importer swedebugia
[not found] ` <56844BF3.10701@uq.edu.au>
2015-12-30 21:27 ` Ben Woodcroft [this message]
2015-12-30 22:00 ` Cyril Roelandt
2016-01-01 18:10 ` swedebugia
2016-01-02 17:10 ` swedebugia
2016-01-02 18:06 ` How to test changes to guix locally? (Was: Re: Trying to fix an error in the pypi-importer) swedebugia
2016-01-02 18:58 ` Ricardo Wurmus
2016-01-02 18:26 ` Trying to fix an error in the pypi-importer Erik Edrosa
2016-01-03 14:09 ` Ludovic Courtès
2016-01-03 16:29 ` swedebugia
2016-01-03 18:47 ` Ricardo Wurmus
2015-12-31 11:22 ` Efraim Flashner
2016-01-01 18:15 ` swedebugia
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=56844C26.7060602@uq.edu.au \
--to=b.woodcroft@uq.edu.au \
--cc=guix-devel@gnu.org \
--cc=swedebugia@riseup.net \
/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).