Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: Florian Schmaus <flow@g.o>, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 2/2] distutils-r1.eclass: use _python_check_EPYTHON in (compile|test|install)
Date: Mon, 12 Jul 2021 15:38:35
Message-Id: 20210712153806.235407-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: Issue more explanatory errors wrt wrong env by "Michał Górny"
1 From: Florian Schmaus <flow@g.o>
2
3 Signed-off-by: Florian Schmaus <flow@g.o>
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/distutils-r1.eclass | 6 ++++++
7 1 file changed, 6 insertions(+)
8
9 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
10 index 3286842f0933..0236c576efc5 100644
11 --- a/eclass/distutils-r1.eclass
12 +++ b/eclass/distutils-r1.eclass
13 @@ -742,6 +742,8 @@ _distutils-r1_copy_egg_info() {
14 distutils-r1_python_compile() {
15 debug-print-function ${FUNCNAME} "${@}"
16
17 + _python_check_EPYTHON
18 +
19 _distutils-r1_copy_egg_info
20
21 # distutils is parallel-capable since py3.5
22 @@ -820,6 +822,8 @@ distutils-r1_python_test() {
23 die "${FUNCNAME} can be only used after calling distutils_enable_tests"
24 fi
25
26 + _python_check_EPYTHON
27 +
28 if [[ ${_DISTUTILS_TEST_INSTALL} ]]; then
29 distutils_install_for_testing
30 fi
31 @@ -859,6 +863,8 @@ distutils-r1_python_test() {
32 distutils-r1_python_install() {
33 debug-print-function ${FUNCNAME} "${@}"
34
35 + _python_check_EPYTHON
36 +
37 local root=${D%/}/_${EPYTHON}
38 [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/}
39
40 --
41 2.32.0