summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-03 09:39:47 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-03 10:16:25 +0200
commit3156d07f30384ec0669d2fdda1a46a83431781e5 (patch)
tree992992fb0b4a459902301e2452f873b3b5cbcce3 /metadata
parentapp-eselect/eselect-rust: add 20210703, unkeyworded for testing (diff)
downloadgentoo-3156d07f30384ec0669d2fdda1a46a83431781e5.tar.gz
gentoo-3156d07f30384ec0669d2fdda1a46a83431781e5.tar.bz2
gentoo-3156d07f30384ec0669d2fdda1a46a83431781e5.zip
metadata/install-qa-check.d: Skip DUS tests w/ DISTUTILS_OPTIONAL
DISTUTILS_OPTIONAL skips setting the dependency on setuptools entirely, so skip checking for its correctness, and verbosely complain if it's set. Closs: https://bugs.gentoo.org/800147 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r--metadata/install-qa-check.d/60distutils-use-setuptools9
1 files changed, 9 insertions, 0 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
index d08be885eb8e..25300fddda90 100644
--- a/metadata/install-qa-check.d/60distutils-use-setuptools
+++ b/metadata/install-qa-check.d/60distutils-use-setuptools
@@ -12,6 +12,15 @@ distutils_use_setuptools_check() {
# pyproject.toml is verified by using it
[[ ${DISTUTILS_USE_SETUPTOOLS} == pyproject.toml ]] && return
+ # setuptools dep is not set if distutils is optional
+ if [[ ${DISTUTILS_OPTIONAL} ]]; then
+ if [[ ${DISTUTILS_USE_SETUPTOOLS} != bdepend ]]; then
+ eerror "QA Notice: DISTUTILS_USE_SETUPTOOLS is not used when DISTUTILS_OPTIONAL"
+ eerror "is enabled."
+ fi
+ return
+ fi
+
local expected=()
for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
local EPYTHON PYTHON