Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 4/4] distutils-r1.eclass: Do not filter error output from backend getter
Date: Tue, 22 Feb 2022 23:31:29
Message-Id: 20220222233011.101456-4-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/4] python-any-r1.eclass: Fix unsupported/invalid EPYTHON logic by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/distutils-r1.eclass | 5 +++--
4 1 file changed, 3 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
7 index 1fe69f1a3dde..731b4028ae59 100644
8 --- a/eclass/distutils-r1.eclass
9 +++ b/eclass/distutils-r1.eclass
10 @@ -938,11 +938,12 @@ _distutils-r1_get_backend() {
11 # if pyproject.toml exists, try getting the backend from it
12 # NB: this could fail if pyproject.toml doesn't list one
13 build_backend=$(
14 - "${EPYTHON}" - 3>&1 &>/dev/null <<-EOF
15 + "${EPYTHON}" - 3>&1 <<-EOF
16 import os
17 import tomli
18 print(tomli.load(open("pyproject.toml", "rb"))
19 - ["build-system"]["build-backend"],
20 + .get("build-system", {})
21 + .get("build-backend", ""),
22 file=os.fdopen(3, "w"))
23 EOF
24 )
25 --
26 2.35.1