python-utils-r1.eclass: Rename *into vars to use underscores

Rename helper variables used by *into to mark them private with
underscores.  The old names are leftovers from deprecated API that
permitted setting them directly.  It was last used in ::gentoo in 2016.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-06-23 23:44:05 +02:00
parent 964f5c6181
commit addf1c5993
+6 -6
View File
@@ -658,7 +658,7 @@ python_optimize() {
python_scriptinto() {
debug-print-function ${FUNCNAME} "${@}"
python_scriptroot=${1}
_PYTHON_SCRIPTROOT=${1}
}
# @FUNCTION: python_doexe
@@ -693,7 +693,7 @@ python_newexe() {
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
[[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <path> <new-name>"
local wrapd=${python_scriptroot:-/usr/bin}
local wrapd=${_PYTHON_SCRIPTROOT:-/usr/bin}
local f=${1}
local newfn=${2}
@@ -797,7 +797,7 @@ python_newscript() {
python_moduleinto() {
debug-print-function ${FUNCNAME} "${@}"
python_moduleroot=${1}
_PYTHON_MODULEROOT=${1}
}
# @FUNCTION: python_domodule
@@ -821,13 +821,13 @@ python_domodule() {
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
local d
if [[ ${python_moduleroot} == /* ]]; then
if [[ ${_PYTHON_MODULEROOT} == /* ]]; then
# absolute path
d=${python_moduleroot}
d=${_PYTHON_MODULEROOT}
else
# relative to site-packages
local sitedir=$(python_get_sitedir)
d=${sitedir#${EPREFIX}}/${python_moduleroot//.//}
d=${sitedir#${EPREFIX}}/${_PYTHON_MODULEROOT//.//}
fi
(