From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: PYTHONPATH issue analysis - part 3 Date: Thu, 15 Mar 2018 10:09:31 +0100 Message-ID: <878tatwvqs.fsf@gnu.org> References: <87371tqbyb.fsf@elephly.net> <20180223165953.GA6088@thebird.nl> <871sgn1xhf.fsf@gnu.org> <87h8pjsejc.fsf@mdc-berlin.de> 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]:54215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewOtD-000555-Ba for guix-devel@gnu.org; Thu, 15 Mar 2018 05:09:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewOtC-0007y3-Db for guix-devel@gnu.org; Thu, 15 Mar 2018 05:09:35 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:60080) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ewOtC-0007wt-5f for guix-devel@gnu.org; Thu, 15 Mar 2018 05:09:34 -0400 In-Reply-To: <87h8pjsejc.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Wed, 14 Mar 2018 01:10:15 +0100") 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" To: Ricardo Wurmus Cc: guix-devel@gnu.org Hello, Ricardo Wurmus skribis: > The problem might be that we are using PYTHONPATH at all. On other > distributions this is usually not required and thus doesn=E2=80=99t cause= any > problems. It=E2=80=99s not required because Python modules live at a fixed location, = no? How does pip deal with that? I suppose it needs to modify the search path somehow. > As outlined in my first email in this thread, our use of PYTHONPATH in > wrappers seems to not have the desired effect in the presence of > incompatible packages that are *later* in the PYTHONPATH. > > We also have problems when PYTHONPATH includes modules for both Python 2 > and 3, which happens automatically when these modules are installed into > the same Guix profile. Since merely installing packages for different > Python versions is not a problem on traditional distros (on my Fedora > workstation I have site-packages directories for 4 different versions of > Python) I think we should do better here. I agree, though I must say that if PYTHONPATH is not up to the task, I=E2= =80=99m not sure what can be done on our side. Thanks, Ludo=E2=80=99.