Skip to content

package/python-types-*: fix build with setuptools < 82.0.1

Yegor Yefremov buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 2 repliesIn review

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/2package/python-types-{python-dateutil, psutil, setuptools}: skip build dependency checkpackage/python-types-psutil/python-types-psutil.mk package/python-types-python-dateutil/python-types-python-dateutil.mk package/python-types-setuptools/python-types-setuptools.mk+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] package/python-types-*: fix build with setuptools < 82.0.1

From: Yegor Yefremov <[email protected]>

The latest typeshed stub packages (types-python-dateutil, types-psutil and types-setuptools) use "<pkg>-stubs" keys in [tool.setuptools.package-data] and require setuptools >= 82.0.1, as older versions reject such keys, see
https://autobuild.buildroot.org/results/1ce798157bff8a423ca8c7c9f0e82620890ec3b3

Bumping setuptools is not an option for now, as 82.x breaks older U-Boot versions using binman (see commit aa8e6bc395fe), so instead of fixing up each pyproject.toml, this series backports the relevant part of the upstream validate-pyproject fix to our setuptools 80.9.0 and skips the now unneeded build dependency check in the three stub packages.

Tested by building python-types-python-dateutil, host-python-types-psutil and host-python-types-setuptools for an i686 Bootlin toolchain and checking that the stubs get installed.

Yegor Yefremov (2):
package/python-setuptools: accept PEP 561 stub names as package-data
keys
package/python-types-{python-dateutil, psutil, setuptools}: skip build
dependency check

 ...-561-stub-names-as-package-data-keys.patch | 42 +++++++++++++++++++
 .../python-types-psutil.mk                    |  3 ++
 .../python-types-python-dateutil.mk           |  3 ++
 .../python-types-setuptools.mk                |  3 ++
 4 files changed, 51 insertions(+)
 create mode 100644 package/python-setuptools/0002-config-allow-PEP-561-stub-names-as-package-data-keys.patch
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot