From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Down with PYTHONPATH! Date: Mon, 17 Jun 2019 11:11:16 +0200 Message-ID: <8736k837bf.fsf@gnu.org> References: <87muikr3bq.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:470:142:3::10]:52851) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcnfa-0006BM-Ke for guix-devel@gnu.org; Mon, 17 Jun 2019 05:11:19 -0400 In-Reply-To: (Hartmut Goebel's message of "Sat, 15 Jun 2019 15:35:56 +0200") 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: Hartmut Goebel Cc: guix-devel@gnu.org Hello, Hartmut Goebel skribis: > IMO the only sustainable solution it to patch the interpreter > (Modules/getpath.c) to determine the correct "installation path" > (profile). I did quite some work on this last year, but had no time to > finish it. I still have no time for finishing, but I should be able to > hand-over my results (including prepared patches for Python 3.7). So the interpreter would somehow have to determine where what profile it=E2=80=99s in (if any), like =E2=80=98current-profile=E2=80=99 in (guix d= escribe) does? Note that python would still have to run even when it=E2=80=99s not running= from a profile. Ricardo Wurmus skribis: > GUIX_PYTHON2PATH / GUIX_PYTHON3PATH is as solution that=E2=80=99s really = just a > variant of what we=E2=80=99ve been doing all along (with PYTHONPATH), and= it has > precedent in GUIX_LOCPATH, GUIX_GTK2_IM_MODULE_FILE, and > GUIX_GTK3_IM_MODULE_FILE. It=E2=80=99s a simple solution and removing it= later > when a better solution comes along has virtually no costs. I agree=E2=80=A6 except for using the argument of there being a precedent, because these were not solutions we were particularly proud of I think. :-) Thanks, Ludo=E2=80=99.