1 |
commit: 8ac9ef8e3bbb52eb6dbcb15b2660dc58cc3d373c |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 11 19:39:45 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 14 17:56:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ac9ef8e |
7 |
|
8 |
distutils-r1.eclass: use _python_check_EPYTHON |
9 |
|
10 |
Replace the existing EPYTHON check with _python_check_EPYTHON and use |
11 |
_python_check_EPYTHON in a few additional places. |
12 |
|
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/21610 |
15 |
|
16 |
eclass/distutils-r1.eclass | 8 +++++++- |
17 |
1 file changed, 7 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
20 |
index 786f5963663..1326809a8bc 100644 |
21 |
--- a/eclass/distutils-r1.eclass |
22 |
+++ b/eclass/distutils-r1.eclass |
23 |
@@ -460,7 +460,7 @@ distutils_enable_tests() { |
24 |
esetup.py() { |
25 |
debug-print-function ${FUNCNAME} "${@}" |
26 |
|
27 |
- [[ -n ${EPYTHON} ]] || die "EPYTHON unset, invalid call context" |
28 |
+ _python_check_EPYTHON |
29 |
|
30 |
[[ ${BUILD_DIR} ]] && _distutils-r1_create_setup_cfg |
31 |
|
32 |
@@ -743,6 +743,8 @@ _distutils-r1_copy_egg_info() { |
33 |
distutils-r1_python_compile() { |
34 |
debug-print-function ${FUNCNAME} "${@}" |
35 |
|
36 |
+ _python_check_EPYTHON |
37 |
+ |
38 |
_distutils-r1_copy_egg_info |
39 |
|
40 |
# distutils is parallel-capable since py3.5 |
41 |
@@ -821,6 +823,8 @@ distutils-r1_python_test() { |
42 |
die "${FUNCNAME} can be only used after calling distutils_enable_tests" |
43 |
fi |
44 |
|
45 |
+ _python_check_EPYTHON |
46 |
+ |
47 |
if [[ ${_DISTUTILS_TEST_INSTALL} ]]; then |
48 |
distutils_install_for_testing |
49 |
fi |
50 |
@@ -860,6 +864,8 @@ distutils-r1_python_test() { |
51 |
distutils-r1_python_install() { |
52 |
debug-print-function ${FUNCNAME} "${@}" |
53 |
|
54 |
+ _python_check_EPYTHON |
55 |
+ |
56 |
local root=${D%/}/_${EPYTHON} |
57 |
[[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/} |