Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Cc: James Le Cuirot <chewi@g.o>
Subject: [gentoo-dev] [PATCH 03/12] python-utils-r1.eclass: Have wrapper workdir default to "impl" arg
Date: Thu, 03 Jan 2019 21:41:04
Message-Id: 20190103213924.22835-4-chewi@gentoo.org
In Reply to: [gentoo-dev] [PATCH] Eclass changes for cross-compiling Python modules by James Le Cuirot
1 It currently defaults to EPYTHON, which might not even be defined
2 yet. The "impl" arg defaults to EPYTHON anyway.
3
4 Signed-off-by: James Le Cuirot <chewi@g.o>
5 ---
6 eclass/python-utils-r1.eclass | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
10 index 1eca0764a202..1a549f49f3f2 100644
11 --- a/eclass/python-utils-r1.eclass
12 +++ b/eclass/python-utils-r1.eclass
13 @@ -980,8 +980,8 @@ python_doheader() {
14 python_wrapper_setup() {
15 debug-print-function ${FUNCNAME} "${@}"
16
17 - local workdir=${1:-${T}/${EPYTHON}}
18 local impl=${2:-${EPYTHON}}
19 + local workdir=${1:-${T}/${impl}}
20
21 [[ ${workdir} ]] || die "${FUNCNAME}: no workdir specified."
22 [[ ${impl} ]] || die "${FUNCNAME}: no impl nor EPYTHON specified."
23 --
24 2.19.2