Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 23 Jun 2021 21:44:36
Message-Id: 1624484645.addf1c599306fa5404929ac208108f410b490bb9.mgorny@gentoo
1 commit: addf1c599306fa5404929ac208108f410b490bb9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 06:58:17 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 23 21:44:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=addf1c59
7
8 python-utils-r1.eclass: Rename *into vars to use underscores
9
10 Rename helper variables used by *into to mark them private with
11 underscores. The old names are leftovers from deprecated API that
12 permitted setting them directly. It was last used in ::gentoo in 2016.
13
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 eclass/python-utils-r1.eclass | 12 ++++++------
17 1 file changed, 6 insertions(+), 6 deletions(-)
18
19 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
20 index e3b8e51065a..a75709f19ea 100644
21 --- a/eclass/python-utils-r1.eclass
22 +++ b/eclass/python-utils-r1.eclass
23 @@ -658,7 +658,7 @@ python_optimize() {
24 python_scriptinto() {
25 debug-print-function ${FUNCNAME} "${@}"
26
27 - python_scriptroot=${1}
28 + _PYTHON_SCRIPTROOT=${1}
29 }
30
31 # @FUNCTION: python_doexe
32 @@ -693,7 +693,7 @@ python_newexe() {
33 [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
34 [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <path> <new-name>"
35
36 - local wrapd=${python_scriptroot:-/usr/bin}
37 + local wrapd=${_PYTHON_SCRIPTROOT:-/usr/bin}
38
39 local f=${1}
40 local newfn=${2}
41 @@ -797,7 +797,7 @@ python_newscript() {
42 python_moduleinto() {
43 debug-print-function ${FUNCNAME} "${@}"
44
45 - python_moduleroot=${1}
46 + _PYTHON_MODULEROOT=${1}
47 }
48
49 # @FUNCTION: python_domodule
50 @@ -821,13 +821,13 @@ python_domodule() {
51 [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
52
53 local d
54 - if [[ ${python_moduleroot} == /* ]]; then
55 + if [[ ${_PYTHON_MODULEROOT} == /* ]]; then
56 # absolute path
57 - d=${python_moduleroot}
58 + d=${_PYTHON_MODULEROOT}
59 else
60 # relative to site-packages
61 local sitedir=$(python_get_sitedir)
62 - d=${sitedir#${EPREFIX}}/${python_moduleroot//.//}
63 + d=${sitedir#${EPREFIX}}/${_PYTHON_MODULEROOT//.//}
64 fi
65
66 (