Mailing List Archive

[PATCH 2/2] distutils-r1.eclass: use _python_check_EPYTHON in (compile|test|install)
From: Florian Schmaus <flow@gentoo.org>

Signed-off-by: Florian Schmaus <flow@gentoo.org>
Signed-off-by: Micha? Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 3286842f0933..0236c576efc5 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -742,6 +742,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
@@ -820,6 +822,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
@@ -859,6 +863,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%/}

--
2.32.0