From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: PYTHONPATH issue analysis - part 3 Date: Wed, 14 Mar 2018 01:10:15 +0100 Message-ID: <87h8pjsejc.fsf@mdc-berlin.de> References: <87371tqbyb.fsf@elephly.net> <20180223165953.GA6088@thebird.nl> <871sgn1xhf.fsf@gnu.org> 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]:42179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew52v-0004DW-BP for guix-devel@gnu.org; Wed, 14 Mar 2018 07:58:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ew52r-00057Z-C9 for guix-devel@gnu.org; Wed, 14 Mar 2018 07:58:17 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ew52r-00057H-4r for guix-devel@gnu.org; Wed, 14 Mar 2018 07:58:13 -0400 In-reply-to: <871sgn1xhf.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > I may well have missed something (sorry about that!), but what are =E2=80= =9Cthe > problems related to how Guix is using PYTHONPATH=E2=80=9D? > > My first reaction is that Guix is not doing anything special with > PYTHONPATH, and only defining it as documented by upstream. 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 a= ny problems. 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. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net