1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
eclass/distutils-r1.eclass | 10 ++++++++-- |
4 |
1 file changed, 8 insertions(+), 2 deletions(-) |
5 |
|
6 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
7 |
index a46b71431e48..314604e62660 100644 |
8 |
--- a/eclass/distutils-r1.eclass |
9 |
+++ b/eclass/distutils-r1.eclass |
10 |
@@ -776,8 +776,14 @@ _distutils-r1_wrap_scripts() { |
11 |
local basename=${f##*/} |
12 |
|
13 |
debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}" |
14 |
- _python_ln_rel "${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \ |
15 |
- "${path}${bindir}/${basename}" || die |
16 |
+ if [[ ${EAPI} != [67] ]]; then |
17 |
+ dosym -r "${path#${D}}"/usr/lib/python-exec/python-exec2 \ |
18 |
+ "${path#${D}}${bindir#${EPREFIX}}/${basename}" |
19 |
+ else |
20 |
+ _python_ln_rel \ |
21 |
+ "${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \ |
22 |
+ "${path}${bindir}/${basename}" || die |
23 |
+ fi |
24 |
done |
25 |
|
26 |
for f in "${non_python_files[@]}"; do |
27 |
-- |
28 |
2.32.0 |