Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/distutils-r1.eclass | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index a46b71431e48..314604e62660 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -776,8 +776,14 @@ _distutils-r1_wrap_scripts() {
                        local basename=${f##*/}
 
                        debug-print "${FUNCNAME}: installing wrapper at 
${bindir}/${basename}"
-                       _python_ln_rel 
"${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
-                               "${path}${bindir}/${basename}" || die
+                       if [[ ${EAPI} != [67] ]]; then
+                               dosym -r 
"${path#${D}}"/usr/lib/python-exec/python-exec2 \
+                                       
"${path#${D}}${bindir#${EPREFIX}}/${basename}"
+                       else
+                               _python_ln_rel \
+                                       
"${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
+                                       "${path}${bindir}/${basename}" || die
+                       fi
                done
 
                for f in "${non_python_files[@]}"; do
-- 
2.32.0


Reply via email to