mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
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:
@@ -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%/}
|
||||
|
||||
Reference in New Issue
Block a user