commit:     3251a8ba252aa56278cdfabd74a2490697db5cae
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  4 13:17:44 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Sep  4 13:20:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3251a8ba

dev-util/maturin: silence pip for tests

We are the ones allowing pip to use system packages (to avoid
network), and then bad packages can generate noise, then test
failure. Was tempted to say "these packages should just be
fixed to use pep517", but different issues are going to come
around eventually.

Ideally would want a more specific option to hide these
warnings, but I only know of -qq to be "really quiet".

Closes: https://bugs.gentoo.org/913613
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/maturin/maturin-1.2.3.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-util/maturin/maturin-1.2.3.ebuild 
b/dev-util/maturin/maturin-1.2.3.ebuild
index 4552aea55d0c..df491b1daa41 100644
--- a/dev-util/maturin/maturin-1.2.3.ebuild
+++ b/dev-util/maturin/maturin-1.2.3.ebuild
@@ -411,8 +411,12 @@ src_prepare() {
        distutils-r1_src_prepare
 
        if use test; then
-               # used to prevent use of network during tests
+               # used to prevent use of network during tests, and silence pip
+               # if it finds unrelated issues with system packages (bug 
#913613)
                cat > "${T}"/pip.conf <<-EOF || die
+                       [global]
+                       quiet = 2
+
                        [install]
                        no-index = yes
                        no-dependencies = yes

Reply via email to