• [gentoo-dev] [PATCH 2/2] distutils-r1.eclass: Issue a QA warning if "bu

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sat Apr 9 18:40:01 2022
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index e6b0ab5e0e32..2e4a11bb8826 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -1115,7 +1115,13 @@ distutils-r1_python_compile() {
    # call setup.py build when using setuptools (either via PEP517
    # or in legacy mode)
    if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
    - if [[ ! ${DISTUTILS_USE_PEP517} ]]; then
    + if [[ ${GPEP517_TESTING} ]]; then
    + if [[ -d build ]]; then
    + eqawarn "A 'build' directory exists already. Artifacts from this directory may"
    + eqawarn "be picked up by setuptools when building for another interpreter."
    + eqawarn "Please remove this directory prior to building."
    + fi
    + else
    _distutils-r1_copy_egg_info
    fi

    --
    2.35.1

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