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 |