Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 19 Jan 2022 22:59:45
Message-Id: 1642633170.edd9c2d8e6b810e62879df805a8291636676eb10.mgorny@gentoo
1 commit: edd9c2d8e6b810e62879df805a8291636676eb10
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 19 22:18:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 22:59:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd9c2d8
7
8 distutils-r1.eclass: Mark installed scripts +x in PEP517 mode
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/distutils-r1.eclass | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
16 index ae19ca08f7e4..d7cea6a512f6 100644
17 --- a/eclass/distutils-r1.eclass
18 +++ b/eclass/distutils-r1.eclass
19 @@ -971,6 +971,12 @@ distutils-r1_python_compile() {
20 --no-compile-bytecode ||
21 die "installer failed"
22
23 + # TODO: workaround for a bug in installer; remove once we depend
24 + # on a properly fixed version
25 + if [[ -d ${root}/usr/bin ]]; then
26 + chmod +x "${root}"/usr/bin/* || die
27 + fi
28 +
29 # clean the build tree; otherwise we may end up with PyPy3
30 # extensions duplicated into CPython dists
31 if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then