commit: edd9c2d8e6b810e62879df805a8291636676eb10 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Jan 19 22:18:11 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Jan 19 22:59:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd9c2d8
distutils-r1.eclass: Mark installed scripts +x in PEP517 mode Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index ae19ca08f7e4..d7cea6a512f6 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -971,6 +971,12 @@ distutils-r1_python_compile() { --no-compile-bytecode || die "installer failed" + # 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 + fi + # clean the build tree; otherwise we may end up with PyPy3 # extensions duplicated into CPython dists if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then