metadata/install-qa-check.d: only check images w/ site-packages

Avoid noise on all merges even if no Python files installed. No need
to use siteimpl function as > Python 2.7 (and .. 3.6? 3.7?) it's all
standard anyway.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-08-03 19:56:04 +01:00
parent 153564d241
commit ac3b18d6dd

View File

@@ -24,6 +24,9 @@ python_pyc_check() {
for prog in "${progs[@]}"; do
local impl=${prog%/*}
impl=${impl##*/}
[[ -d "${ED}"/usr/lib/${impl}/site-packages ]] || continue
einfo "Verifying compiled files for ${impl}"
local kind pyc py
while IFS=: read -r kind pyc py extra; do