commit:     8491be3d0e50182171eb66519bc19cb90a20bae5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 19:09:46 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  2 19:10:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8491be3d

distutils-r1.eclass: Revert "Support backend-path in pyproject.toml"

This does not handle packages without pyproject.toml correctly.

Reverts: c8b8dc11f7235ad4f7b05f24bd75a85c110ec400
Closes: https://bugs.gentoo.org/836660
Closes: https://bugs.gentoo.org/836661
Closes: https://bugs.gentoo.org/836662
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/distutils-r1.eclass | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 0491452104be..ed2e9f70269f 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1015,15 +1015,8 @@ distutils_pep517_install() {
        einfo "  Building the wheel for ${PWD#${WORKDIR}/} via ${build_backend}"
        local wheel=$(
                "${EPYTHON}" - 3>&1 >&2 <<-EOF || die "Wheel build failed"
-                       import os
-                       import sys
-                       import tomli
-
-                       sys.path[:0] = (tomli.load(open("pyproject.toml", "rb"))
-                                       .get("build-system", {})
-                                       .get("backend-path", []))
-
                        import ${build_backend%:*}
+                       import os
                        
print(${build_backend/:/.}.build_wheel(os.environ['WHEEL_BUILD_DIR']),
                                file=os.fdopen(3, 'w'))
                EOF

Reply via email to