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 2/2] distutils-r1.eclass: Improve PEP 517 einfo output
Date: Wed, 26 Jan 2022 14:10:39
Message-Id: 20220126141014.963408-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Set script shebangs to venv in PEP 517 by "Michał Górny"
1 Add an einfo message for calling installer. Indent both messages
2 relevant to PEP 517 logic.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/distutils-r1.eclass | 3 ++-
7 1 file changed, 2 insertions(+), 1 deletion(-)
8
9 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
10 index cf3eb639d5e6..7dfd92691b59 100644
11 --- a/eclass/distutils-r1.eclass
12 +++ b/eclass/distutils-r1.eclass
13 @@ -952,7 +952,7 @@ distutils-r1_python_compile() {
14 fi
15 fi
16
17 - einfo "Building a wheel via ${build_backend}"
18 + einfo " Building the wheel via ${build_backend}"
19 "${EPYTHON}" -c "import ${build_backend%:*}; \
20 import os; \
21 ${build_backend/:/.}.build_wheel(os.environ['WHEEL_BUILD_DIR'])" ||
22 @@ -964,6 +964,7 @@ distutils-r1_python_compile() {
23 fi
24
25 local root=${BUILD_DIR}/install
26 + einfo " Installing the wheel to ${root}"
27 # NB: --compile-bytecode does not produce the correct paths,
28 # and python_optimize doesn't handle being called outside D,
29 # so we just defer compiling until the final merge
30 --
31 2.35.0