From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/2] gnu: add python-django. Date: Mon, 12 Sep 2016 23:07:37 +0200 Message-ID: <87oa3sygh2.fsf@gnu.org> References: <1471865497-7324-1-git-send-email-h.goebel@crazy-compilers.com> <1471865497-7324-2-git-send-email-h.goebel@crazy-compilers.com> <87sht5tfcf.fsf@gnu.org> <57D6B493.9010109@crazy-compilers.com> 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]:52451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjYSW-0004eV-7E for guix-devel@gnu.org; Mon, 12 Sep 2016 17:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjYSQ-0008Fg-2A for guix-devel@gnu.org; Mon, 12 Sep 2016 17:08:07 -0400 In-Reply-To: <57D6B493.9010109@crazy-compilers.com> (Hartmut Goebel's message of "Mon, 12 Sep 2016 15:58:43 +0200") 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@gnu.org Hi, Hartmut Goebel skribis: >> I finally reviewed this patch and pushed it as >> d18197af7844151e38322605b11e0c75b18b55bf with small changes: adjust the >> list of =E2=80=98native-inputs=E2=80=99, use =E2=80=98propagated-inputs= =E2=80=99 for all the run-time >> dependencies, use two semicolons for line comments (as opposed to margin >> comments), and add the patch to gnu/local.mk. > > Thanks :-) > > Unfortunately most of the inputs are now mixed now - but maybe I'm wrong > here, since I still did not get when to use propagated-inputs and normal > inputs for Python packages. [*] Sorry for messing up! > 1. > > setuptools is a run-time dependence, so it needs to be a > propagated-input (I assume). This is why there is a comment "Django > uses 'pkg_resources' (part of setuptools) to locate templates at > run-time. Ooh, OK, I misinterpreted that. > 2. > > All packages below the line "Taken from tests/requirements/py3.txt." > are required for tests only. So I assume they are normal inputs. That would mean that Django has no run-time dependency other than setuptools? I would think pillow, pyyaml, sqlparse, etc. are run-time dependencies no? I tested current master with: guix environment -C --ad-hoc python-django python -- python2 and then: import django That should detect if we forgot to propagate some of the dependencies, but of course it does not detect if we propagate too many dependencies. > 3. Same for python2-django: enum34 and mock are used for testing only. OK. Do you want to send a patch to fix this? Thanks, Ludo=E2=80=99.