diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-22 08:31:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-25 16:53:08 +0100 |
commit | 1c4e8ef63a2a8b58f44e4f78225633aa3282c3dc (patch) | |
tree | 26873eee82936742beadf58174bcbc3e3219b8d1 /eclass | |
parent | distutils-r1.eclass: Make build-backend getting more reliable (diff) | |
download | gentoo-1c4e8ef63a2a8b58f44e4f78225633aa3282c3dc.tar.gz gentoo-1c4e8ef63a2a8b58f44e4f78225633aa3282c3dc.tar.bz2 gentoo-1c4e8ef63a2a8b58f44e4f78225633aa3282c3dc.zip |
distutils-r1.eclass: Do not filter error output from backend getter
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index d95b9525db40..4ce666eee902 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -939,11 +939,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 ) |