Signed-off-by: Michał Górny <
mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index f2804defb818..2c75daab14cc 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -973,8 +973,8 @@ distutils-r1_python_compile() {
# TODO: workaround for a bug in installer; remove once we depend
# on a properly fixed version
- if [[ -d ${root}/usr/bin ]]; then
- chmod +x "${root}"/usr/bin/* || die
+ if [[ -d ${root}${EPREFIX}/usr/bin ]]; then
+ chmod +x "${root}${EPREFIX}"/usr/bin/* || die
fi
# remove installed licenses
@@ -989,11 +989,11 @@ distutils-r1_python_compile() {
fi
# enable venv magic inside the install tree
- mkdir -p "${root}"/usr/bin || die
- ln -s "${PYTHON}" "${root}/usr/bin/${EPYTHON}" || die
- ln -s "${EPYTHON}" "${root}/usr/bin/python3" || die
- ln -s "${EPYTHON}" "${root}/usr/bin/python" || die
- cat > "${root}"/usr/pyve