1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
eclass/distutils-r1.eclass | 37 ++++++++----------------------------- |
4 |
1 file changed, 8 insertions(+), 29 deletions(-) |
5 |
|
6 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
7 |
index 1cc4626f3a12..97c5e562bc0f 100644 |
8 |
--- a/eclass/distutils-r1.eclass |
9 |
+++ b/eclass/distutils-r1.eclass |
10 |
@@ -1265,25 +1265,14 @@ distutils_wheel_install() { |
11 |
local wheel=${2} |
12 |
|
13 |
einfo " Installing ${wheel##*/} to ${root}" |
14 |
- if has_version -b ">=dev-python/gpep517-9"; then |
15 |
- # TODO: inline when we dep on >=9 |
16 |
- local cmd=( |
17 |
- gpep517 install-wheel |
18 |
- --destdir="${root}" |
19 |
- --interpreter="${PYTHON}" |
20 |
- --prefix="${EPREFIX}/usr" |
21 |
- --optimize=all |
22 |
- "${wheel}" |
23 |
- ) |
24 |
- else |
25 |
- local cmd=( |
26 |
- gpep517 install-wheel |
27 |
- --destdir="${root}" |
28 |
- --interpreter="${PYTHON}" |
29 |
- --prefix="${EPREFIX}/usr" |
30 |
- "${wheel}" |
31 |
- ) |
32 |
- fi |
33 |
+ local cmd=( |
34 |
+ gpep517 install-wheel |
35 |
+ --destdir="${root}" |
36 |
+ --interpreter="${PYTHON}" |
37 |
+ --prefix="${EPREFIX}/usr" |
38 |
+ --optimize=all |
39 |
+ "${wheel}" |
40 |
+ ) |
41 |
printf '%s\n' "${cmd[*]}" |
42 |
"${cmd[@]}" || die "Wheel install failed" |
43 |
|
44 |
@@ -2018,16 +2007,6 @@ _distutils-r1_post_python_install() { |
45 |
die "Package installs '${p}' package which is forbidden and likely a bug in the build system." |
46 |
fi |
47 |
done |
48 |
- |
49 |
- if [[ ${DISTUTILS_USE_PEP517} ]]; then |
50 |
- if ! has_version -b ">=dev-python/gpep517-9" |
51 |
- then |
52 |
- # TODO: remove when we dep on >=9 |
53 |
- # we need to recompile everything here in order to embed |
54 |
- # the correct paths |
55 |
- python_optimize "${sitedir}" |
56 |
- fi |
57 |
- fi |
58 |
fi |
59 |
} |
60 |
|
61 |
-- |
62 |
2.38.1 |