From 54697429cefca1c1922af8fc37f8ce8facaa1527 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 27 Oct 2026 11:52:23 -0700 Subject: [PATCH] python3-wxgtk4: Use python_setuptools_build_meta pyproject.toml specifies setuptools.build_meta as the build backend. Inheriting setuptools3 with INSANE_SKIP for pep517-backend was a workaround for the top level build.py shadowing pyproject-build's own "build" module, which is fixed in oe-core's python3targetconfig class ("python3targetconfig: Do not add the current directory to PYTHONPATH"). pyproject.toml pins sip == 6.12.0, which is only used to regenerate the wrapper sources that the sdist already ships, so skip the build dependency check. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../python3-wxgtk4/python3-wxgtk4_4.2.5.bb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb index d2f910c4da..7ec71ffe88 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb @@ -17,15 +17,11 @@ SRC_URI += "file://add-back-option-build-base.patch \ " SRC_URI[sha256sum] = "44e836d1bccd99c38790bb034b6ecf70d9060f6734320560f7c4b0d006144793" -inherit pypi setuptools3 cython pkgconfig features_check +inherit pypi python_setuptools_build_meta cython pkgconfig features_check -# wxPython declares setuptools.build_meta in pyproject.toml, but it cannot be -# built through pyproject-build: the sdist ships a build.py in its top level -# directory, which shadows the "build" module pyproject-build itself imports: -# from build.__main__ import entrypoint -# ModuleNotFoundError: No module named 'build.__main__'; 'build' is not a package -# Keep driving setup.py directly until upstream stops colliding with that name. -INSANE_SKIP += "pep517-backend" +# pyproject.toml pins sip == 6.12.0, which is only needed to regenerate the +# wrapper sources; the sdist already ships them. +PEP517_BUILD_OPTS = "--skip-dependency-check" REQUIRED_DISTRO_FEATURES = "x11"