From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: PYTHONPATH issue analysis - part 3 Date: Tue, 13 Mar 2018 22:44:31 +0100 Message-ID: <20180313214431.GA15654@thebird.nl> 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]:44286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evrmm-0006lA-Oz for guix-devel@gnu.org; Tue, 13 Mar 2018 17:48:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evrmj-0000jl-Nf for guix-devel@gnu.org; Tue, 13 Mar 2018 17:48:44 -0400 Content-Disposition: inline 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 =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org On Tue, Mar 13, 2018 at 10:23:08PM +0100, Ludovic Court=C3=A8s wrote: > > Preliminary Proposal > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > To be able to install different minor versions of Python in the same > > profile, any environment variable should contain the minor version, t= oo. > > E.g. =E2=80=A6-3.5. >=20 > If you=E2=80=99re suggesting to have a =E2=80=98PYTHONPATH3-5=E2=80=99 = environment variable > instead of =E2=80=98PYTHONPATH=E2=80=99, I agree it could be helpful if= we are to > install different versions of Python in one profile. =20 Another problem is that it does not cover special cases where, for example you compile Python with SSL and without. You don't want them to share user installed libs. That is why I stick in the Hash value. Ruby example https://gitlab.com/pjotrp/guix-notes/blob/master/scripts/ruby-guix-env admittedly I no longer use that much. But I would if I just quickly wanted to try a gem/module and make sure it is isolated. > However, it=E2=80=99s a choice for upstream to make, and upstream did n= ot > make that choice. Sometimes upstream can do with good ideas ;). The shared use of PYTHONPATH between versions of Python2 and 3 is as brain dead as it can be. I see people trip over it regularly, including myself. Great time waster, if nothing else. > There=E2=80=99s one case where we went our way instead of following ups= tream, > and that is =E2=80=98GUIX_LOCPATH=E2=80=99. There are strong justifica= tions, though. Would not work with multiple versions in one profile though. Anyway, Hartmut covered all that. Pj. --=20