From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: PYTHONPATH - let's systematically tame the baest Date: Mon, 16 Apr 2018 16:21:00 +0200 Message-ID: <2c8e59df-d0f7-e096-f175-a8a74e8818dc@crazy-compilers.com> References: <87371tqbyb.fsf@elephly.net> <20180223165953.GA6088@thebird.nl> 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]:50265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f850G-00010I-Lv for guix-devel@gnu.org; Mon, 16 Apr 2018 10:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f850D-0007WY-EE for guix-devel@gnu.org; Mon, 16 Apr 2018 10:21:08 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:51141) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f850D-0007VB-4X for guix-devel@gnu.org; Mon, 16 Apr 2018 10:21:05 -0400 In-Reply-To: Content-Language: en-US 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: Pjotr Prins Cc: guix-devel@gnu.org Hi, let's pick up on this issue and systematically design the test-cases to benchmark the proposed solutions. I already prepared a test-script to simplify this and will provide a full description as later. **Please comment if any relevant case is missing or if any case can be skipped** 1) Test-cases For all environments (see below) these cases must give the expected output - which is defined by what a "foreign distribution's" python would do: - "installed" python - venv with and without --system-site-packages - stacked venv with and without --system-site-packages 2) Environments to be tested. The proposed solution must pass the test-suite in all of these environmen= ts: 2.1 guix environment: =C2=A0=C2=A0=C2=A0=C2=A0 guix environment --ad-hoc python -- python3 test= it =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 --> Expected outcome: site-packages from G= UIX_ENVIRONEMENT 2.2 guix environment with container: =C2=A0=C2=A0=C2=A0=C2=A0 guix environment -C --ad-hoc python -- python3 t= estit =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 --> Expected outcome: site-packages from G= UIX_ENVIRONEMENT 2.3 Installed package *without setting the environment variables!* =C2=A0=C2=A0=C2=A0=C2=A0 guix package -i python && ~/.guix-profile/bin/py= thon3 testit =C2=A0=C2=A0=C2=A0 --> Expected outcome: site-packages from ~/.guix-profi= le/ =C2=A0=C2=A0=C2=A0 --> Shall this work, too? Is it nice-to-have or useles= s? 2.4 running from /gnu/store (directly) =C2=A0 =C2=A0 $(readlink -f ~/.guix-profile/bin/python3) testit =C2=A0=C2=A0=C2=A0 --> Expected outcome: site-packages from /gnu/store =C2=A0 =C2=A0 --> What is the expected outcome? What is the expected 2.5 running from /gnu/store (via link) =C2=A0 =C2=A0 ln -s $(readlink -f ~/.guix-profile/bin/python3) /tmp/test-guix-pythonA.exe ; =C2=A0=C2=A0=C2=A0 /tmp/test-guix-pythonA.exe testit =C2=A0=C2=A0=C2=A0 --> Expected outcome: site-packages from /gnu/store 2.6 Installed in GuixSD =C2=A0=C2=A0=C2=A0 --> Do we need to test this? Or is this already covere= d by one of the other cases? --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |