Signed-off-by: Michał Górny <
mgorny@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 1fe69f1a3dde..731b4028ae59 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -938,11 +938,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
)
--
2.35.1
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)