summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-04-18 00:45:15 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-29 13:42:14 +0200
commitb9810954053e699b3b743bf059a1b91b4776763c (patch)
treef369d209f37c9eec404e3196b849d81563f96619 /metadata
parentinstall-qa-check.d: Make DUS check distinguish entry points (diff)
downloadgentoo-b9810954053e699b3b743bf059a1b91b4776763c.tar.gz
gentoo-b9810954053e699b3b743bf059a1b91b4776763c.tar.bz2
gentoo-b9810954053e699b3b743bf059a1b91b4776763c.zip
install-qa-check.d: Extend DUS check to handle no egg-info
If the package does not install any .egg-info files, i.e. distutils is probably not used at all, we do not the eclass to create a setuptools dependency. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r--metadata/install-qa-check.d/60distutils-use-setuptools5
1 files changed, 4 insertions, 1 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
index 8970a6ab9989..61209302ef3e 100644
--- a/metadata/install-qa-check.d/60distutils-use-setuptools
+++ b/metadata/install-qa-check.d/60distutils-use-setuptools
@@ -51,7 +51,10 @@ distutils_use_setuptools_check() {
eerror "This could mean the package has bad conditions:"
eerror "https://dev.gentoo.org/~mgorny/python-guide/distutils.html#conditional-distutils-setuptools-use-in-packages"
eerror "Please report a bug about this and CC python@"
- elif [[ ${#expected[@]} -gt 0 ]]; then
+ else
+ # if we did not find anything, also assume 'no' is desired,
+ # we do not want the setuptools dep
+ [[ ${#expected[@]} -eq 0 ]] && expected=( no )
# *+rdepend=rdepend
has rdepend "${expected[@]}" && expected=( rdepend )
# for the time being, entry points imply rdepend