From 7dc263d110ddca6557beefbe40f05d0da334de11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 5 Jun 2022 11:16:23 +0200 Subject: [PATCH] distutils-r1.eclass: Ban DISTUTILS_IN_SOURCE_BUILD in PEP517 mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index db5cced509523..db46d64eea4a6 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