distutils-r1.eclass: Fix installing scripts w/ PEP517 & single-impl

Closes: https://bugs.gentoo.org/832267
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-01-29 08:53:29 +01:00
parent 0f25d68b27
commit 2a0bda7dbb
+3
View File
@@ -1146,6 +1146,9 @@ distutils-r1_python_install() {
# remove the altered bindir, executables from the package
# are already in scriptdir
rm -r "${root}${scriptdir}" || die
if [[ ${DISTUTILS_SINGLE_IMPL} ]]; then
mv "${root}$(python_get_scriptdir)" "${root}${scriptdir}" || die
fi
else
local root=${D%/}/_${EPYTHON}
[[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/}