From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F02B15815E for ; Thu, 1 Feb 2024 21:53:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13164E2A50; Thu, 1 Feb 2024 21:53:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B91DFE2A3A for ; Thu, 1 Feb 2024 21:53:12 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-dc6d94b9961so1183386276.3 for ; Thu, 01 Feb 2024 13:53:11 -0800 (PST) X-Gm-Message-State: AOJu0YzaFGF70rC+EJxHNU7pHA8kVD5Zh7/xpBCpzYpto5U62UkqDm+G vdo1ICuGPct8d2pqFn+qNe1OJZNoXgKy9EixQeitVEVqmEvr/BXtnQ4bIlYElLaOGdEYBi3jV3k B1DczloA8M6Y5OAwJSNYIW3QYXBE= X-Google-Smtp-Source: AGHT+IFOAX0CmfH1ajN8MVA459kjIUl1JIMEQQszRGSyUavmwTLOhZB9MbOFDfiDqfXPEVtdKrAkeFrxb2ETzo9rGhI= X-Received: by 2002:a5b:64a:0:b0:dc6:4421:5020 with SMTP id o10-20020a5b064a000000b00dc644215020mr434855ybq.19.1706824389973; Thu, 01 Feb 2024 13:53:09 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <9cd24274a8502f92e20fff640c19a63560bfdc4c.camel@gentoo.org> <70c91f58-bf2f-48e9-8fa5-e67056114231@gmail.com> In-Reply-To: <70c91f58-bf2f-48e9-8fa5-e67056114231@gmail.com> From: Mike Gilbert Date: Thu, 1 Feb 2024 16:52:58 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] RFC: Block ebuilds installing tests to ${D} by default To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 272caff7-288d-450c-90e2-822ea9a0ffb2 X-Archives-Hash: 94d47372e353913a63d29ed1b94718bc On Thu, Feb 1, 2024 at 4:38=E2=80=AFPM Eli Schwartz = wrote: > > On 2/1/24 4:03 PM, Micha=C5=82 G=C3=B3rny wrote: > > I suppose you are referring to dev-lang/python here. Unfortunately, > > removing tests from it is a non-trivial problem. As I've mentioned to > > you before, there are packages that actually import modules form the > > test directory. > > > > Remember that Gentoo has a policy of following upstream, and this polic= y > > is specifically targeted towards developers who expect Gentoo to > > be a good baseline environment for developing packages. By explicitly > > diverging from upstream default install by default, we are effectively > > creating an incompatible Python environment and requiring users to go > > through extra steps to restore upstream compatibility. > > > The "following upstream" argument is extremely weak. > > eschwartz ~/git/cpython $ ./configure --help| grep test > --disable-test-modules don't build nor install test modules > > > Clearly, upstream is giving you loud and clear permission to refrain > from installing this. They even have a split in their Makefile variables: > - LIBSUBDIRS: things that are always installed > - TESTSUBDIRS: test files that you can disable Ah, that's a relatively new configure option added in Python 3.10. It didn't exist back in 2015 when I was looking into this. https://docs.python.org/3/whatsnew/3.10.html#build-changes Thanks for pointing it out.