distutils-r1.eclass: Use 'dosym -r' in EAPI 8

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-06-29 08:04:57 +02:00
parent 7e33b5a5b6
commit c8406daedf
+4 -2
View File
@@ -775,8 +775,10 @@ _distutils-r1_wrap_scripts() {
local basename=${f##*/}
debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}"
_python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \
"${D%/}${bindir}/${basename}" || die
local dosym=dosym
[[ ${EAPI} == [67] ]] && dosym=dosym8
"${dosym}" -r /usr/lib/python-exec/python-exec2 \
"${bindir#${EPREFIX}}/${basename}"
done
for f in "${non_python_files[@]}"; do