distutils-r1.eclass: Call python via ${EPYTHON}, not full path
authorMichał Górny <mgorny@gentoo.org>
Thu, 3 May 2018 14:05:11 +0000 (16:05 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 7 May 2018 07:43:33 +0000 (09:43 +0200)
eclass/distutils-r1.eclass

index ede30b28086336bb813a27b4506ba8e08e8c3551..26fa0069a73dae9298b3c66fd6ffbb7d5a991cda 100644 (file)
@@ -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[@]}"