From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Python: inputs vs. propagated inputs Date: Mon, 19 Sep 2016 09:45:14 +0200 Message-ID: <87r38gmiyd.fsf@elephly.net> References: <67bb3997-bb9a-6699-1dca-d14889e8eefe@crazy-compilers.com> 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]:44566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bltGb-0007G4-Fw for guix-devel@gnu.org; Mon, 19 Sep 2016 03:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bltGX-00083r-GK for guix-devel@gnu.org; Mon, 19 Sep 2016 03:45:28 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bltGX-00083e-0m for guix-devel@gnu.org; Mon, 19 Sep 2016 03:45:25 -0400 In-reply-to: <67bb3997-bb9a-6699-1dca-d14889e8eefe@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 Hartmut Goebel writes: > Hi, > > I still do not get whether python packages required at run-time need to > be inputs or propagated inputs. > > The part about inputs, native-inputs and propagated-inputs in section > "package Reference" explicitly states Python as an example where > propagated-inputs are needed. Neither the section about the > python-build-system nor the python packaging guidelines give any other > hints. > > In gnu/packages/python.scm there are modules using only inputs (e.g. > python-ccm), some are using propagated-inputs (e.g. > python-scikit-image), some using both (e.g. python-paramiko). I can not > see any clear rule being followed. I’d say “python-ccm” is wrong (not only in using “inputs” but also in its description). The exception are Python *applications*. Those usually have a wrapper to set the PYTHONPATH appropriately. For Python modules we need propagated-inputs for everything that must be available at runtime. ~~ Ricardo