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: Sat, 02 Apr 2022 19:11:20
Message-Id: 1648926634.8491be3d0e50182171eb66519bc19cb90a20bae5.mgorny@gentoo
1 commit: 8491be3d0e50182171eb66519bc19cb90a20bae5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 19:09:46 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 19:10:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8491be3d
7
8 distutils-r1.eclass: Revert "Support backend-path in pyproject.toml"
9
10 This does not handle packages without pyproject.toml correctly.
11
12 Reverts: c8b8dc11f7235ad4f7b05f24bd75a85c110ec400
13 Closes: https://bugs.gentoo.org/836660
14 Closes: https://bugs.gentoo.org/836661
15 Closes: https://bugs.gentoo.org/836662
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 eclass/distutils-r1.eclass | 9 +--------
19 1 file changed, 1 insertion(+), 8 deletions(-)
20
21 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
22 index 0491452104be..ed2e9f70269f 100644
23 --- a/eclass/distutils-r1.eclass
24 +++ b/eclass/distutils-r1.eclass
25 @@ -1015,15 +1015,8 @@ distutils_pep517_install() {
26 einfo " Building the wheel for ${PWD#${WORKDIR}/} via ${build_backend}"
27 local wheel=$(
28 "${EPYTHON}" - 3>&1 >&2 <<-EOF || die "Wheel build failed"
29 - import os
30 - import sys
31 - import tomli
32 -
33 - sys.path[:0] = (tomli.load(open("pyproject.toml", "rb"))
34 - .get("build-system", {})
35 - .get("backend-path", []))
36 -
37 import ${build_backend%:*}
38 + import os
39 print(${build_backend/:/.}.build_wheel(os.environ['WHEEL_BUILD_DIR']),
40 file=os.fdopen(3, 'w'))
41 EOF