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 <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-10-30 09:08:46 -07:00
1 parent 3d159389a6
commit 54697429ce
1 file changed
+4 -8
@@ -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"