Gentoo Archives: gentoo-proxy-maint

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-proxy-maint@l.g.o
Cc: python@g.o
Subject: [gentoo-proxy-maint] [PATCH] distutils-r1.eclass: fix in-source build in PEP517 mode
Date: Sun, 05 Jun 2022 02:28:46
Message-Id: 20220605022838.2260-1-cyber+gentoo@sysrq.in
1 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
2 ---
3
4 There's one broken package in the tree because of this bug:
5 dev-python/reflink-0.21.1-r2
6
7 eclass/distutils-r1.eclass | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
11 index ed368da798..76ad4ed9d2 100644
12 --- a/eclass/distutils-r1.eclass
13 +++ b/eclass/distutils-r1.eclass
14 @@ -1286,7 +1286,7 @@ distutils_pep517_install() {
15
16 # clean the build tree; otherwise we may end up with PyPy3
17 # extensions duplicated into CPython dists
18 - if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
19 + if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} && ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
20 rm -rf build || die
21 fi
22 }
23 --
24 2.35.1

Replies