Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 6/7] distutils-r1.eclass: Call python via ${EPYTHON}, not full path
Date: Thu, 03 May 2018 14:15:37
Message-Id: 20180503141248.26762-7-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/7] Initial support for EAPI 7 for python-r1 suite by "Michał Górny"
1 ---
2 eclass/distutils-r1.eclass | 4 ++--
3 1 file changed, 2 insertions(+), 2 deletions(-)
4
5 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
6 index ede30b280863..26fa0069a73d 100644
7 --- a/eclass/distutils-r1.eclass
8 +++ b/eclass/distutils-r1.eclass
9 @@ -231,7 +231,7 @@ fi
10 # @USAGE: [<args>...]
11 # @DESCRIPTION:
12 # Run setup.py using currently selected Python interpreter
13 -# (if ${PYTHON} is set; fallback 'python' otherwise).
14 +# (if ${EPYTHON} is set; fallback 'python' otherwise).
15 #
16 # setup.py will be passed the following, in order:
17 # 1. ${mydistutilsargs[@]}
18 @@ -250,7 +250,7 @@ esetup.py() {
19
20 [[ ${BUILD_DIR} ]] && _distutils-r1_create_setup_cfg
21
22 - set -- "${PYTHON:-python}" setup.py "${mydistutilsargs[@]}" "${@}"
23 + set -- "${EPYTHON:-python}" setup.py "${mydistutilsargs[@]}" "${@}"
24
25 echo "${@}" >&2
26 "${@}" || die "${die_args[@]}"
27 --
28 2.17.0