commit: 8ac9ef8e3bbb52eb6dbcb15b2660dc58cc3d373c Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Sat Sep 11 19:39:45 2021 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Tue Sep 14 17:56:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ac9ef8e
distutils-r1.eclass: use _python_check_EPYTHON Replace the existing EPYTHON check with _python_check_EPYTHON and use _python_check_EPYTHON in a few additional places. Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21610 eclass/distutils-r1.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 786f5963663..1326809a8bc 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -460,7 +460,7 @@ distutils_enable_tests() { esetup.py() { debug-print-function ${FUNCNAME} "${@}" - [[ -n ${EPYTHON} ]] || die "EPYTHON unset, invalid call context" + _python_check_EPYTHON [[ ${BUILD_DIR} ]] && _distutils-r1_create_setup_cfg @@ -743,6 +743,8 @@ _distutils-r1_copy_egg_info() { distutils-r1_python_compile() { debug-print-function ${FUNCNAME} "${@}" + _python_check_EPYTHON + _distutils-r1_copy_egg_info # distutils is parallel-capable since py3.5 @@ -821,6 +823,8 @@ distutils-r1_python_test() { die "${FUNCNAME} can be only used after calling distutils_enable_tests" fi + _python_check_EPYTHON + if [[ ${_DISTUTILS_TEST_INSTALL} ]]; then distutils_install_for_testing fi @@ -860,6 +864,8 @@ distutils-r1_python_test() { distutils-r1_python_install() { debug-print-function ${FUNCNAME} "${@}" + _python_check_EPYTHON + local root=${D%/}/_${EPYTHON} [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/}
