diff mbox series

[meta-python,4/5] python3-wxgtk4: Skip the pep517-backend QA check

Message ID 20260729052901.2147056-4-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/5] python3-thrift: Switch to python_setuptools_build_meta | expand

Commit Message

Khem Raj July 29, 2026, 5:28 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

wxPython's pyproject.toml declares setuptools.build_meta, so do_check_backend
warns:

  QA Issue: inherits setuptools3 but has pyproject.toml with
  setuptools.build_meta, use the correct class [pep517-backend]

Switching to python_setuptools_build_meta is not possible though. The sdist
ships a build.py in its top level directory which shadows the "build" module
that pyproject-build imports itself, so do_compile dies before it even looks
at the recipe:

  File ".../recipe-sysroot-native/usr/bin/pyproject-build", line 5, in <module>
    from build.__main__ import entrypoint
  ModuleNotFoundError: No module named 'build.__main__'; 'build' is not a package

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../python3-wxgtk4/python3-wxgtk4_4.2.5.bb                | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

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 a84648266e..9a8952df32 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
@@ -20,6 +20,14 @@  SRC_URI[sha256sum] = "44e836d1bccd99c38790bb034b6ecf70d9060f6734320560f7c4b0d006

 inherit pypi setuptools3 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"
+
 REQUIRED_DISTRO_FEATURES = "x11"

 export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR} --baselib=${baselib}'"