commit:     2bb9963c6c6c29fa4f732db9935e3a1028bb8566
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May  3 14:05:11 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  7 07:43:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bb9963c

distutils-r1.eclass: Call python via ${EPYTHON}, not full path

 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index ede30b28086..26fa0069a73 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -231,7 +231,7 @@ fi
 # @USAGE: [<args>...]
 # @DESCRIPTION:
 # Run setup.py using currently selected Python interpreter
-# (if ${PYTHON} is set; fallback 'python' otherwise).
+# (if ${EPYTHON} is set; fallback 'python' otherwise).
 #
 # setup.py will be passed the following, in order:
 # 1. ${mydistutilsargs[@]}
@@ -250,7 +250,7 @@ esetup.py() {
 
        [[ ${BUILD_DIR} ]] && _distutils-r1_create_setup_cfg
 
-       set -- "${PYTHON:-python}" setup.py "${mydistutilsargs[@]}" "${@}"
+       set -- "${EPYTHON:-python}" setup.py "${mydistutilsargs[@]}" "${@}"
 
        echo "${@}" >&2
        "${@}" || die "${die_args[@]}"

Reply via email to