commit:     8a8c999ecf9892c8b41ccb120d0098212cd1374f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 31 19:15:58 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  1 18:33:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a8c999e

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 <AT> gentoo.org>

 eclass/distutils-r1.eclass | 5 +++++
 1 file changed, 5 insertions(+)

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}]'
 

Reply via email to