• [gentoo-dev] [PATCH] distutils-r1.eclass: fix in-source build in PEP517

    From Anna Vyalkova@21:1/5 to All on Sun Jun 5 04:40:01 2022
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    ---

    There's one broken package in the tree because of this bug: dev-python/reflink-0.21.1-r2

    eclass/distutils-r1.eclass | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index ed368da798..76ad4ed9d2 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -1286,7 +1286,7 @@ distutils_pep517_install() {

    # clean the build tree; otherwise we may end up with PyPy3
    # extensions duplicated into CPython dists
    - if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
    + if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} && ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
    rm -rf build || die
    fi
    }
    --
    2.35.1

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