From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dM9bO-0000ew-L2 for guix-patches@gnu.org; Sat, 17 Jun 2017 05:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dM9bL-0007Nf-KT for guix-patches@gnu.org; Sat, 17 Jun 2017 05:01:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dM9bL-0007NU-HM for guix-patches@gnu.org; Sat, 17 Jun 2017 05:01:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dM9bK-00031K-I8 for guix-patches@gnu.org; Sat, 17 Jun 2017 05:01:03 -0400 Subject: [bug#27271] Avoiding =?UTF-8?Q?=E2=80=98propagated-inputs=E2=80=99?= for Python dependencies Resent-Message-ID: From: Hartmut Goebel References: <20170607092242.20565-1-ludo@gnu.org> <878tl2djh8.fsf@elephly.net> <871sqtpkfo.fsf@gnu.org> <87fuf8nbpv.fsf@fastmail.com> <8737b80xn7.fsf_-_@gnu.org> Message-ID: <5944EFAD.1020309@crazy-compilers.com> Date: Sat, 17 Jun 2017 11:00:29 +0200 MIME-Version: 1.0 In-Reply-To: <8737b80xn7.fsf_-_@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Marius Bakke Cc: Ricardo Wurmus , 27271@debbugs.gnu.org Hi, in addition to what I just wrote, you should be aware of this implementation restriction: =2Epth-files are searched only in directories listed in sys.path (PYTHONPATH), they are not searched recursively. Assuming the dependency-graph AAA -> SOME-PACKAGE -> PPP, guix (after implementing this proposal) will only install AAA into the profile and only .AAA.pth will be processes. This will result into PPP to be not foun= d. This could be worked around by adding a module "sitecustomize.py" to our python setup, which could implement the recursive addition of paths. BTW: The corresponding patch for python-2.7-site-prefixes.patch is missing for Python 3, so for Python 3 no .pth-files are processed at all =E2=80=93 I assume. (I have no time ATM for testing. Sorry.) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |