From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yEWfIBvSIWZXcQEA62LTzQ:P1 (envelope-from ) for ; Fri, 19 Apr 2024 04:08:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yEWfIBvSIWZXcQEA62LTzQ (envelope-from ) for ; Fri, 19 Apr 2024 04:08:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fhvb16PP; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713492507; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QzHka3FzkDLLgOe1AiVmPrl+DzLFaiKBja92di3XrtY=; b=WjZjeWrPWqxulDRpCdDpYRHQOka07O/Ry3Pd7LW9yIa9qyF56CMbHsiRZfVi9+Vq3BdDNs smb1zMnjweDCaUA6SWlNeT7JByeuclCpJuy7hjamxJ0vSEmREv7X4GhtqWmAuuP7KpPR0w K/k3i3uM9tmjCUR/BlzBe221b2990v6lvb1wgnIjQwoXQnku5XyTbLggKlO1We8JO6mfTc LR4m10b6CpOLeFw6iYX5wBu5HRbyhb+kky7ApQbk1ea7iSPh9XaAeawvAW6J5HuJGUXOTC DwJ5TWt5cFp5lD7XBugvJ5aZaR9cSMqHBGRK4EA+WwE2H8ez5MNNsrZX0kSBvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713492507; a=rsa-sha256; cv=none; b=nf1UX4gUe0GBdHmbh+ydvW+8H5AWkowMS+tdngmMvci+vCMtc/mvQ/I5WUUu9v9v61c3WU VK8YfQ3ROPqocPKjvoL8oRckrqBi7kvi2+7oeV7HK3r46+WvB257l5+u+P6kYAFUDaZzgI qlyh2DghjZzfHFqBv9ejifbyV29y0CA9vLYRHM2OatenYJq41owOmxZBlR+Yeg6Epqdd8r klU52+QTUjR8c6BIQLe2qDqJbtpaxVR6G+SABI6spTq+07TQoXjAvpUWmDPWQ6dtEjnWsn AvksL+HmPaWNFswRRzFKa05jdgTImXLnag7g4UrGkB0/qhk04OGRU2gg2lruSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fhvb16PP; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5CD1961D7B for ; Fri, 19 Apr 2024 04:08:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxdfD-0000ZI-T8; Thu, 18 Apr 2024 22:07:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxdfC-0000Z8-VG for guix-devel@gnu.org; Thu, 18 Apr 2024 22:07:42 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxdfB-0005EK-Av; Thu, 18 Apr 2024 22:07:42 -0400 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-78f05b62602so96455385a.0; Thu, 18 Apr 2024 19:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713492460; x=1714097260; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=QzHka3FzkDLLgOe1AiVmPrl+DzLFaiKBja92di3XrtY=; b=fhvb16PPWbS0M0cs0dqowJV3KXO16FUMZCdLdo8mBT1h6SE1eQXwXsgvdYS5sYJyIT ku5/tFJiEsAqsOUt7YapEupme+moAwpGb3dE7yTh7Q2ErGj/EIBarBE1yWKZTdF6jl83 p7nwijbgcxKEeTuiYWWJXokQcyC357G21iG6Fp9r7ng9wDhBl8P2hWU64WlrwvF7wcri zEOeuYrV497nPJk13C1dABjAMNP1PbLQaDdO2yzSC5xXGkQlQhB/BJ11AzZG1sYauAdb tK4bkNdnz8zC9+4xB7s+CX88Hk7rIeanffsnexOdBpjPQqMt/GJEkickwDE9M58DejIO 6Rbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713492460; x=1714097260; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QzHka3FzkDLLgOe1AiVmPrl+DzLFaiKBja92di3XrtY=; b=NQYV9oSG56/UCD0K7XrSzmDlOI6JQ4vY7ZuN7JTcGVvn/pSH5/xkKqxUiWBtYUyY3o WJyZKlfLY3Ghe2em0VsUnWKmoKKp1exVkBsh48ok5IRvwj5nMjl9HZBGZMKO0XdMGC+J YxzTOaqXKkZ5x4VijMjcDf5CZjDC8/oIXz2SzxDkaIaYnrulHYljNWbPGDHvdl6zE4m7 K1Xw9UPgWvxRSJsXwpVRm8yfShV/73mD/Dawbqr39hFADRhh9gGd5EoW6MDdDaOIUezh kW9w2gvWQqAjCXGYkkylO9qZEPGEul3iByG4WPsppnxnOaA4bzFcme3CXA/+LzZ9a0P4 tiyA== X-Forwarded-Encrypted: i=1; AJvYcCUPefgKghETxv6Sn1HBX09l6IvKbYBzadSk+Z0+3e4Tl6penWT3s36q5ikAUd6LxOQk3AwmwtmImwBY7A1YEw== X-Gm-Message-State: AOJu0YzUBue5IaM4mCoZGsEWdpmdNVl9ULWrh9ZB9iW8SSSgC7osFzRs ggqMq4dS/DUo41hPWgrAi4r5j8emPlyqG4AXuBL0r0NEL1Ixa+/D X-Google-Smtp-Source: AGHT+IGST+XTBFW+VHIohYa9qQg2mf+nwVvnea8NxwgqI6n4Cg3GyT8yY8ObOZmucr2m/acIgwtxGg== X-Received: by 2002:a05:620a:254f:b0:78e:db34:9c2a with SMTP id s15-20020a05620a254f00b0078edb349c2amr1086930qko.14.1713492459652; Thu, 18 Apr 2024 19:07:39 -0700 (PDT) Received: from hurd (dsl-159-201.b2b2c.ca. [66.158.159.201]) by smtp.gmail.com with ESMTPSA id vu23-20020a05620a561700b0078d66d66d82sm1201013qkn.30.2024.04.18.19.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 19:07:39 -0700 (PDT) From: Maxim Cournoyer To: Nicolas Graves via "Development of GNU Guix and the GNU System distribution." Cc: Nicolas Graves , lars@6xq.net, tanguy@bioneland.org, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com Subject: Re: Python's native-inputs In-Reply-To: <87wmowmuh0.fsf@ngraves.fr> (Nicolas Graves via's message of "Wed, 17 Apr 2024 07:25:15 +0200") References: <87wmowmuh0.fsf@ngraves.fr> Date: Thu, 18 Apr 2024 22:07:38 -0400 Message-ID: <87frvim7f9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.19 X-Spam-Score: -8.19 X-Migadu-Queue-Id: 5CD1961D7B X-Migadu-Scanner: mx13.migadu.com X-TUID: /bg6Dn2QiyiL Hi Nicolas, Nicolas Graves via "Development of GNU Guix and the GNU System distribution." writes: > Hi Guix, > > On some languages, there are a lot of unused native-inputs that are > development & linting dependencies much more than packages that are > actually used to build or test a package (I'm thinking at least Python > and Rust). These fall in the category of tools "useful" at run time, but > unecessary at build time. Indeed. > Is there a clear policy about their removal? I've seen the case of > pre-commit in Python, and I've commited a series yesterday regarding > pylint, but there are a whole lot of them in Python, at least : [...] > These packages make a lot of sense when considering things like > `guix shell -D` but they are hampering some progress on Python packages > since they are everywhere and a small update in their inputs rebuilds > the whole python world (even though it has NO influence on the > functionality of any other package). > > What are the guidelines in this case? There aren't really any guidelines. It's easy to avoid the linters, it makes sense to avoid them, but sometimes upstream makes it difficult to avoid running a linter as part of there test suite, in which case I think it's acceptable to keep them as native-inputs rather than come up with more patches to maintain. > I can propose a huge patch series (currently ~300 patches, and not > finished), to remove them, lint against them and remove them from the > importer as a default, but that's a big decision to make. IMO we should > have a dev-inputs field to handle these cases, but that's even more work. The situation is similar as for other test inputs such as pytest; it has an enormous amounts of dependents and thus cannot be easily upgraded on the master branch. At least more up-to-date variants can be added since these are not in the transitive closure of any packages. I don't think we should go out of our way to address annoyances that upstream have caused -- that'd be too much work to maintain in the long run. -- Thanks, Maxim