all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add python-contextlib2
Date: Tue, 01 Dec 2015 08:22:47 +0000	[thread overview]
Message-ID: <CAEKzfH=-eFz4HitptCsRwAKLP=XyTH3Bn4Y6O8+WMKsxbPEEeg@mail.gmail.com> (raw)
In-Reply-To: <87mvu0x4c9.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]

Hi Ludo',

Yes, your explanation about the quoting makes sense. Also, it looks like
you were right: the PYTHONPATH leaked from my current environment. Thank
you for your help.

Would you like me to adjust the length of the longest line as mentioned by
Ben, or is my patch good to go as-is?

Thank you,
Chris

On Thu, Nov 26, 2015 at 5:44 AM Ludovic Courtès <ludo@gnu.org> wrote:

> Hi!
>
> Sorry for the delay.
>
> Chris Marusich <cmmarusich@gmail.com> skribis:
>
> > However, there is one curiosity. I've noticed that when I run
> > "./pre-inst-env guix environment python2-contextlib2", the PYTHONPATH
> > is configured to allow importation of contextlib2 from the
> > $profile/lib/python3.4/site-packages directory tree, rather than
> > $profile/lib/python2.7/site-packages. When I run python in this
> > environment, I get a Python 2.7 interpreter.
>
> The interpreter you get here is probably one that was already in PATH,
> because the command above lacks --pure.
>
> If you want to be sure, use:
>
>   ./pre-inst-env guix environment --pure \
>         python2-contextlib python-2 -- python
>
> (Even better: --container instead of --pure.)
>
> Can you confirm?
>
> > I'm also curious: why does the "(#:phases" part need to be
> > quasi-quoted with the backtick symbol "`"?
>
> The #:phases part specified build code (info "(guix) G-Expressions").
> That code is quoted because we don’t want to evaluate it; we merely want
> to pass the code itself for future execution in the build environment.
>
> Does that make sense?
>
> Thanks,
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 2136 bytes --]

  reply	other threads:[~2015-12-01  8:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18  8:31 [PATCH] gnu: Add python-contextlib2 Chris Marusich
2015-11-18  8:46 ` Andreas Enge
2015-11-18  8:46 ` Chris Marusich
2015-11-18 12:55 ` Ben Woodcroft
2015-11-21 21:28   ` Chris Marusich
2015-11-26 13:44     ` Ludovic Courtès
2015-12-01  8:22       ` Chris Marusich [this message]
2015-12-06 21:49         ` Ludovic Courtès
2015-12-08  5:14           ` Chris Marusich
2015-12-13 23:16             ` Ludovic Courtès
2015-12-14  2:15               ` Chris Marusich
2015-12-14  8:44                 ` 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='CAEKzfH=-eFz4HitptCsRwAKLP=XyTH3Bn4Y6O8+WMKsxbPEEeg@mail.gmail.com' \
    --to=cmmarusich@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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.