From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: bug#25235: Wrapped python programs get native-inputs in PYTHONPATH Date: Fri, 31 Mar 2017 00:37:53 +0530 Message-ID: References: <87eg13birp.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87y3zahf8t.fsf@gnu.org> <20161226182608.GA20609@jasmine> <716a63e7.AEQAIoR8aXkAAAAAAAAAAAOwyEEAAAACwQwAAAAAAAW9WABY25oY@mailjet.com> <87o9wiwzn2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctfRU-00046L-GE for bug-guix@gnu.org; Thu, 30 Mar 2017 15:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctfRO-0004j0-QK for bug-guix@gnu.org; Thu, 30 Mar 2017 15:09:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctfRO-0004ii-H0 for bug-guix@gnu.org; Thu, 30 Mar 2017 15:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctfRN-0002sg-Sm for bug-guix@gnu.org; Thu, 30 Mar 2017 15:09:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87o9wiwzn2.fsf@gnu.org> 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: 25235@debbugs.gnu.org > “Build-side” modules, which typically live in (guix build …), should not > depend on “host-side” modules such as (guix packages). That’s because > if we did that, we’d effectively end up importing all of Guix on the > build side, but then we’d also have to serialize data structures such as > packages to pass them from one side to the other. (I hope this makes > sense to you, but if it doesn’t maybe the intro of > can > shed some light.) It makes some sense, but I'll read up more. > So in short, we cannot use ‘package-name’ and > ‘package-transitive-target-inputs’ in this module. Ok. > (Time passes…) > > I wasn’t sure how to fix this bug myself so I gave it a try and ended up > with the patch below, but I haven’t tested in detail. (You’ll notice > (guix build-system python) is hard to work with because it doesn’t use > gexps yet.) > > How does it look? I'm travelling now. I'll get back on Monday and study this patch.