• [gentoo-dev] [PATCH 6/6] distutils-r1.eclass: Restore QA warning for DU

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Tue Feb 1 00:10:01 2022
    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 <[email protected]>
    ---
    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}]'

    --
    2.35.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)