package/python-types-psutil: fix build with setuptools < 82.0.1
PATCH 1/1 package/python-types-psutil: fix build with setuptools < 82.0.1
From: Yegor Yefremov <[email protected]>
Since version 7.2.2.20260906, pyproject.toml requires setuptools >= 82.0.1, as it uses 'psutil-stubs' as a tool.setuptools.package-data key, which older setuptools versions reject as it is not a valid python module name.
Buildroot still provides setuptools 80.9.0 (the bump to 82.0.0 was reverted as it breaks older U-Boot versions), so use the '*' wildcard key instead, which is equivalent as there is only one package, and drop the setuptools version requirement.
Assisted-by Claude:claude-opus-5-5
Signed-off-by Yegor Yefremov <[email protected]>
--- package/python-types-psutil/python-types-psutil.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)
package/python-types-psutil/python-types-psutil.mk +12 -0
@@ -11,4 +11,16 @@ PYTHON_TYPES_PSUTIL_SETUP_TYPE = setuptools PYTHON_TYPES_PSUTIL_LICENSE = Apache-2.0 PYTHON_TYPES_PSUTIL_LICENSE_FILES = LICENSE +# pyproject.toml requires setuptools >= 82.0.1, as older versions +# reject 'psutil-stubs' as a package-data key, it not being a valid +# python module name. As there is only one package, use the '*' +# wildcard instead and drop the version requirement, so that it +# builds with our setuptools. +define PYTHON_TYPES_PSUTIL_FIX_SETUPTOOLS + $(SED) "s/\"setuptools>=[0-9.]*\"/\"setuptools\"/" \ + -e "s/^'psutil-stubs' = /'*' = /" \ + $(@D)/pyproject.toml +endef +HOST_PYTHON_TYPES_PSUTIL_POST_PATCH_HOOKS += PYTHON_TYPES_PSUTIL_FIX_SETUPTOOLS + $(eval $(host-python-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot