From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25235: Wrapped python programs get native-inputs in PYTHONPATH Date: Tue, 20 Dec 2016 15:00:50 +0100 Message-ID: <87y3zahf8t.fsf@gnu.org> References: <87eg13birp.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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]:33979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJKzb-0002bc-MP for bug-guix@gnu.org; Tue, 20 Dec 2016 09:02:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJKzS-00022f-EJ for bug-guix@gnu.org; Tue, 20 Dec 2016 09:02:11 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:32955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJKzS-00022a-AY for bug-guix@gnu.org; Tue, 20 Dec 2016 09:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJKzS-0001E3-0N for bug-guix@gnu.org; Tue, 20 Dec 2016 09:02:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87eg13birp.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Tue, 20 Dec 2016 00:28:58 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marius Bakke Cc: 25235@debbugs.gnu.org Marius Bakke skribis: > The 'wrap' phase of 'python-build-system' adds native-inputs to > PYTHONPATH of the wrapped programs. This causes unnecessary runtime > dependencies and may create problems when cross-compiling. > > Given that all python dependencies are now supposed to be propagated, > perhaps we can simply remove the wrap phase? It only touches PYTHONPATH. We cannot simply remove it: it is meant for packages that provide standalone programs, such as =E2=80=98certbot=E2=80=99. For these, it auto= matically wraps bin/* and we don=E2=80=99t even have to have propagated inputs, which= is pretty cool. However, you are right that native inputs shouldn=E2=80=99t be there. Prob= ably we need to add some filtering in the =E2=80=98wrap=E2=80=99 phase? Ludo=E2=80=99.