summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-30 11:17:38 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-01 19:33:17 +0100
commitad5b2e474a3fb84a34f394c6305dd823e15cad7c (patch)
tree482141fb352ccb24e810b60af4e7ad95e8dd418c
parentnet-im/zoom: Depend on glibc (diff)
downloadgentoo-ad5b2e47.tar.gz
gentoo-ad5b2e47.tar.bz2
gentoo-ad5b2e47.zip
distutils-r1.eclass: Disable stale egg-info cleaning in PEP517 mode
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--eclass/distutils-r1.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 8d03d2d1771d..4ec252958408 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1428,6 +1428,10 @@ distutils-r1_src_compile() {
# Those files ended up being unversioned, and caused issues:
# https://bugs.gentoo.org/534058
_distutils-r1_clean_egg_info() {
+ if [[ ${DISTUTILS_USE_PEP517} ]]; then
+ die "${FUNCNAME} is not implemented in PEP517 mode"
+ fi
+
rm -rf "${BUILD_DIR}"/lib/*.egg-info || die
}
@@ -1436,7 +1440,9 @@ distutils-r1_src_test() {
if declare -f python_test >/dev/null; then
_distutils-r1_run_foreach_impl python_test
- _distutils-r1_run_foreach_impl _distutils-r1_clean_egg_info
+ if [[ ! ${DISTUTILS_USE_PEP517} ]]; then
+ _distutils-r1_run_foreach_impl _distutils-r1_clean_egg_info
+ fi
fi
if declare -f python_test_all >/dev/null; then