From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add python-contextlib2 Date: Thu, 26 Nov 2015 14:44:38 +0100 Message-ID: <87mvu0x4c9.fsf@gnu.org> References: <564C7549.3070707@uq.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1wqq-0007x6-5n for guix-devel@gnu.org; Thu, 26 Nov 2015 08:44:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1wqm-0001OC-VH for guix-devel@gnu.org; Thu, 26 Nov 2015 08:44:44 -0500 In-Reply-To: (Chris Marusich's message of "Sat, 21 Nov 2015 13:28:41 -0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Chris Marusich Cc: "guix-devel@gnu.org" Hi! Sorry for the delay. Chris Marusich 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=E2=80=99t 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=E2=80=99.