summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-08-02 10:15:24 +0200
committerMichał Górny <mgorny@gentoo.org>2021-08-02 10:17:07 +0200
commitb9c4e4272bace02805880b798f8ae8637737c840 (patch)
tree430562283faa603e8d59d64e35bf3bf69efe575f /metadata/install-qa-check.d
parentapp-text/pytextile: Update DISTUTILS_USE_SETUPTOOLS (diff)
downloadgentoo-b9c4e4272bace02805880b798f8ae8637737c840.tar.gz
gentoo-b9c4e4272bace02805880b798f8ae8637737c840.tar.bz2
gentoo-b9c4e4272bace02805880b798f8ae8637737c840.zip
install-qa-check.d: Switch DUS entry point check to pure bdepend
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r--metadata/install-qa-check.d/60distutils-use-setuptools18
1 files changed, 6 insertions, 12 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
index 25300fddda90..a7905c3f0b2f 100644
--- a/metadata/install-qa-check.d/60distutils-use-setuptools
+++ b/metadata/install-qa-check.d/60distutils-use-setuptools
@@ -68,18 +68,12 @@ distutils_use_setuptools_check() {
[[ ${#expected[@]} -eq 0 ]] && expected=( no )
# *+rdepend=rdepend
has rdepend "${expected[@]}" && expected=( rdepend )
-
- if has entry-point "${expected[@]}"; then
- if [[ ${DISTUTILS_STRICT_ENTRY_POINTS} ]]; then
- # option for devs to future-proof their packages
- # please don't let ago enable it
- expected=( bdepend )
- else
- # accept either rdepend or bdepend for the time being
- # but suggest bdepend as the future-proof option
- expected=( bdepend rdepend )
- fi
- fi
+ # NB: note that expected is overwritten above, so this implies !rdepend
+ # if the package is using entry points, modern versions of setuptools
+ # use built-in importlib.metadata module, so no rdep needed anymore
+ # NB2: this is incorrect for pypy3.7 but we ignore this for the time
+ # being
+ has entry-point "${expected[@]}" && expected=( bdepend )
if ! has ${DISTUTILS_USE_SETUPTOOLS} "${expected[@]}"; then
local def=