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