Add a dynamic component to the build directory used by setuptools, to enable calling distutils-r1_python_compile multiple times without having the builds share the same build directory (and therefore end up being combined).
Closes: https://bugs.gentoo.org/951853 Signed-off-by: Michał Górny <mgo...@gentoo.org> --- eclass/distutils-r1.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 8fc9ec5f568b..02245424bff6 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1490,11 +1490,15 @@ distutils-r1_python_compile() { *) # we do this for all build systems, since other backends # and custom hooks may wrap setuptools + # + # we are appending a dynamic component so that + # distutils-r1_python_compile can be called multiple + # times and don't end up combining resulting packages mkdir -p "${BUILD_DIR}" || die local -x DIST_EXTRA_CONFIG="${BUILD_DIR}/extra-setup.cfg" cat > "${DIST_EXTRA_CONFIG}" <<-EOF || die [build] - build_base = ${BUILD_DIR}/build + build_base = ${BUILD_DIR}/build${#DISTUTILS_WHEELS[@]} [build_ext] parallel = $(makeopts_jobs "${MAKEOPTS} ${*}")