From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: PYTHONPATH - let's systematically tame the baest Date: Wed, 18 Apr 2018 10:34:50 +0200 Message-ID: <87muy0ewut.fsf@elephly.net> References: <87371tqbyb.fsf@elephly.net> <20180223165953.GA6088@thebird.nl> <2c8e59df-d0f7-e096-f175-a8a74e8818dc@crazy-compilers.com> 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]:34507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f94qL-0003Pq-VK for guix-devel@gnu.org; Thu, 19 Apr 2018 04:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f94qI-0006MF-RW for guix-devel@gnu.org; Thu, 19 Apr 2018 04:23:01 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f94qI-0006J3-Jq for guix-devel@gnu.org; Thu, 19 Apr 2018 04:22:58 -0400 In-reply-to: <2c8e59df-d0f7-e096-f175-a8a74e8818dc@crazy-compilers.com> 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 Hi Hartmut, > 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. Thank you for picking up the work on this! In all of the tests do we only care about the reported value of site-packages? Should the tests include loading non-trivial packages that have other Python packages as dependencies? > 2.3 Installed package *without setting the environment variables!* > > guix package -i python && ~/.guix-profile/bin/python3 testit > --> Expected outcome: site-packages from ~/.guix-profile/ > --> Shall this work, too? Is it nice-to-have or useless? 2.3b is to install the package into a separate profile with guix package -p /path/to/somewhere -i python > 2.4 running from /gnu/store (directly) > > $(readlink -f ~/.guix-profile/bin/python3) testit > --> Expected outcome: site-packages from /gnu/store > --> What is the expected outcome? What is the expected > > 2.5 running from /gnu/store (via link) > > ln -s $(readlink -f ~/.guix-profile/bin/python3) > /tmp/test-guix-pythonA.exe ; > /tmp/test-guix-pythonA.exe testit > --> Expected outcome: site-packages from /gnu/store I think these two cases should yield the same result. > 2.6 Installed in GuixSD > > --> Do we need to test this? Or is this already covered by one of > the other cases? I don=E2=80=99t think we need to test this as GuixSD does not have any spec= ial behaviour for Python and the system profile is just another profile. This would be the same as 2.3b. -- Ricardo