Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: metadata/install-qa-check.d/
Date: Wed, 03 Aug 2022 18:56:52
Message-Id: 1659552964.ac3b18d6dd5d8a7851691c308a6bae77f3a750a6.sam@gentoo
1 commit: ac3b18d6dd5d8a7851691c308a6bae77f3a750a6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 18:56:04 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 18:56:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac3b18d6
7
8 metadata/install-qa-check.d: only check images w/ site-packages
9
10 Avoid noise on all merges even if no Python files installed. No need
11 to use siteimpl function as > Python 2.7 (and .. 3.6? 3.7?) it's all
12 standard anyway.
13
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 metadata/install-qa-check.d/60python-pyc | 3 +++
17 1 file changed, 3 insertions(+)
18
19 diff --git a/metadata/install-qa-check.d/60python-pyc b/metadata/install-qa-check.d/60python-pyc
20 index f2d5ff3452dd..4679070328c0 100644
21 --- a/metadata/install-qa-check.d/60python-pyc
22 +++ b/metadata/install-qa-check.d/60python-pyc
23 @@ -24,6 +24,9 @@ python_pyc_check() {
24 for prog in "${progs[@]}"; do
25 local impl=${prog%/*}
26 impl=${impl##*/}
27 +
28 + [[ -d "${ED}"/usr/lib/${impl}/site-packages ]] || continue
29 +
30 einfo "Verifying compiled files for ${impl}"
31 local kind pyc py
32 while IFS=: read -r kind pyc py extra; do