aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-07-04 23:00:17 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-07-04 23:00:17 +0300
commitccb467c9a661ac735e9c8fc72263647c6f8a0c7e (patch)
treea0ca1067834b7c84613466ba1eda43a1be548a7c /src
parentnew release 0.10.30 (diff)
downloadpkgcheck-ccb467c9a661ac735e9c8fc72263647c6f8a0c7e.tar.gz
pkgcheck-ccb467c9a661ac735e9c8fc72263647c6f8a0c7e.tar.bz2
pkgcheck-ccb467c9a661ac735e9c8fc72263647c6f8a0c7e.zip
DistutilsNonPEP517Build: handle false positive with eclass defined
Now that most ebuilds use PEP-517 mode, we can relax the check a little to handle cases where the variable is set in the eclass (for example tree-sitter based ebuilds). Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/pkgcheck/checks/python.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
index ae448360..229bb3e9 100644
--- a/src/pkgcheck/checks/python.py
+++ b/src/pkgcheck/checks/python.py
@@ -376,7 +376,8 @@ class PythonCheck(Check):
bdepends = frozenset(map(attrgetter("key"), iflatten_instance(pkg.bdepend, atom)))
if pep517_value is None:
- yield DistutilsNonPEP517Build(pkg=pkg)
+ if "dev-python/gpep517" not in bdepends:
+ yield DistutilsNonPEP517Build(pkg=pkg)
elif has_distutils_optional and not has_distutils_deps and pep517_value != "no":
# We always need BDEPEND for these if != no.
# We are looking for USE-conditional on appropriate target