summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-31 20:15:58 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-01 19:33:20 +0100
commit8a8c999ecf9892c8b41ccb120d0098212cd1374f (patch)
tree7929ca6055926c052c3dfb9e32a71e3f22245c57 /eclass
parentdistutils-r1.eclass: Add DISTUTILS_DEPS output var for PEP 517 mode (diff)
downloadgentoo-8a8c999ecf9892c8b41ccb120d0098212cd1374f.tar.gz
gentoo-8a8c999ecf9892c8b41ccb120d0098212cd1374f.tar.bz2
gentoo-8a8c999ecf9892c8b41ccb120d0098212cd1374f.zip
distutils-r1.eclass: Restore QA warning for DUS + DISTUTILS_OPTIONAL
Restore the QA warning (proviously issued as part of install-qa-check.d) for combining DISTUTILS_USE_SETUPTOOLS and DISTUTILS_OPTIONAL. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index a0ad598eb58f..2b5acb09d926 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -201,6 +201,11 @@ _distutils_set_globals() {
die "Unknown DISTUTILS_USE_PEP517=${DISTUTILS_USE_PEP517}"
;;
esac
+ elif [[ ${DISTUTILS_OPTIONAL} ]]; then
+ if [[ ${DISTUTILS_USE_SETUPTOOLS} ]]; then
+ eqawarn "QA Notice: DISTUTILS_USE_SETUPTOOLS is not used when DISTUTILS_OPTIONAL"
+ eqawarn "is enabled."
+ fi
else
local setuptools_dep='>=dev-python/setuptools-42.0.2[${PYTHON_USEDEP}]'