[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Do not filter error output from backend getter
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2022-02-22 23:30:11
Message-ID: 20220222233011.101456-4-mgorny () gentoo ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic