commit: 1c4e8ef63a2a8b58f44e4f78225633aa3282c3dc
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 22 07:31:51 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 15:53:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c4e8ef6
distutils-r1.eclass: Do not filter error output from backend getter
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index d95b9525db40..4ce666eee902 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -939,11 +939,12 @@ _distutils-r1_get_backend() {
# if pyproject.toml exists, try getting the backend from it
# NB: this could fail if pyproject.toml doesn't list one
build_backend=$(
- "${EPYTHON}" - 3>&1 &>/dev/null <<-EOF
+ "${EPYTHON}" - 3>&1 <<-EOF
import os
import tomli
print(tomli.load(open("pyproject.toml", "rb"))
-
["build-system"]["build-backend"],
+ .get("build-system", {})
+ .get("build-backend", ""),
file=os.fdopen(3, "w"))
EOF
)