commit: 7dc263d110ddca6557beefbe40f05d0da334de11
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 5 09:16:23 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 7 06:53:57 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc263d1
distutils-r1.eclass: Ban DISTUTILS_IN_SOURCE_BUILD in PEP517 mode
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index db5cced50952..db46d64eea4a 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1588,6 +1588,8 @@ distutils-r1_run_phase() {
debug-print-function ${FUNCNAME} "${@}"
if [[ ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
+ [[ ${DISTUTILS_USE_PEP517} ]] &&
+ die "DISTUTILS_IN_SOURCE_BUILD is not supported in
PEP517 mode"
# only force BUILD_DIR if implementation is explicitly enabled
# for building; any-r1 API may select one that is not
# https://bugs.gentoo.org/701506