python3-django: (4.2.27) add back setuptools3 support

The upstream project has switched to build_meta build backend with
version 4.2.21, and when the recipe was update to 4.2.26, the build
backend was changed in the layer also.

Even though the recipe compilation didn't fail, it didn't install the required
files (it pretty much produced empty folders), because the build backend
required a much newer setuptools version than the one provided by oe-core,
it errored out silently. This problem may be hidden by other layers that
ship a newer version of setuptools, like the kirkstone-rust branch in
meta-lts-mixins layer.

To be able to install the recipe (without adding extra layers), this patch
partially reverts the build backend change from upstream, and adds back
setuptools build support.

Ptest summary after this patch:
Ran 16377 tests in 353.124s
OK (skipped=1287, expected failures=5)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2026-01-19 15:24:39 +01:00
parent ae49a08199
commit 8f5f5cf4b3
2 changed files with 182 additions and 2 deletions
@@ -1,7 +1,8 @@
require python-django.inc
#From 4.2.22 onwards setuptools configuration migrated to pyproject.toml
inherit pypi python_setuptools_build_meta
inherit pypi setuptools3
SRC_URI += "file://0001-add-back-setuptools-support.patch"
SRC_URI[sha256sum] = "b865fbe0f4a3d1ee36594c5efa42b20db3c8bbb10dff0736face1c6e4bda5b92"
RDEPENDS:${PN} += "\