commit:     d1cffb5e0c1d470cf472e1d008b0b1f4861a5f65
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 13 10:57:07 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 17:40:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1cffb5e

distutils-r1.eclass: Force stdlib distutils for the time being

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/distutils-r1.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 074a611c84dd..85e94bd569e4 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1033,6 +1033,10 @@ distutils-r1_run_phase() {
 
        local -x LDSHARED="${CC} ${ldopts}" LDCXXSHARED="${CXX} ${ldopts}"
 
+       # Undo the default switch in setuptools-60+ for the time being,
+       # to avoid replacing .egg-info file with directory in-place.
+       local -x SETUPTOOLS_USE_DISTUTILS="${SETUPTOOLS_USE_DISTUTILS:-stdlib}"
+
        "${@}"
 
        cd "${_DISTUTILS_INITIAL_CWD}" || die

Reply via email to