From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Python and propagated inputs Date: Tue, 28 Jun 2016 14:28:45 +0200 Message-ID: <878txpzede.fsf_-_@gnu.org> References: <20160623152004.24065-1-iyzsong@gmail.com> <20160623152004.24065-4-iyzsong@gmail.com> <20160625175837.GH22624@jasmine> <8737o04qkz.fsf@member.fsf.org> <87y45rk6hc.fsf@gnu.org> <87twgeaezn.fsf@member.fsf.org> 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]:54115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHs8K-0000Wb-Kt for guix-devel@gnu.org; Tue, 28 Jun 2016 08:28:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHs8H-0002JW-Td for guix-devel@gnu.org; Tue, 28 Jun 2016 08:28:52 -0400 In-Reply-To: <87twgeaezn.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Mon, 27 Jun 2016 22:22:20 +0800") 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: >>> They're needed at runtime, and included in the pth file. >>> But I'm not sure whether or not inputs for python should be >>> native-inputs, I never cross build python modules for other >>> architertures. >> >> If they=E2=80=99re used at run time, they=E2=80=99re not =E2=80=98native= -inputs=E2=80=99. (In practice >> we cannot cross-compile Python stuff currently, so this is largely a >> theoretical concern, but it doesn=E2=80=99t cost much to get it right.) >> >>> Should I put dnspython and idna into inputs, or propagated-inputs? >> >> If the installed code =E2=80=9Cimport=E2=80=9Ds them, then they should b= e propagated. > OK, done. I'm fine with propagated them, but there are many python > packages use inputs for runtime depends and rely on the pth file too. > > What's the current practice? > > > Also, last dicussed at: > AIUI, what Ricardo is saying in this message is that current practice is to propagate inputs that are needed at run time, even though that sucks in some ways. Ludo=E2=80=99.