Signed-off-by: Michał Górny <
mgorny@gentoo.org>
---
metadata/install-qa-check.d/60python-pyc | 168 +++++++++++++----------
1 file changed, 96 insertions(+), 72 deletions(-)
diff --git a/metadata/install-qa-check.d/60python-pyc b/metadata/install-qa-check.d/60python-pyc
index 47e9a3eea908..fd9434994f2f 100644
--- a/metadata/install-qa-check.d/60python-pyc
+++ b/metadata/install-qa-check.d/60python-pyc
@@ -4,86 +4,110 @@
# QA check: ensure that Python modules are compiled after installing
# Maintainer: Python project <
python@gentoo.org>
-# EAPI guard to prevent errors from trying to import python-utils-r1
-# in unsupported EAPIs. Please keep the list in sync with the eclass!
-if [[ ${EAPI} == [6-8] ]]; then
- inherit python-utils-r1
+python_pyc_check() {
+ local save=$(shopt -p nullglob)
+ shopt -s nullglob
+ local progs=( "${EPREFIX}"/usr/lib/python-exec/*/gpep517 )
+ ${save}
- python_pyc_check() {
- local impl missing=() outdated=()
- for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
- _python_export "${impl}" EPYTHON PYT