mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
Python idna package switched to pyproject.toml in commit:2a00e518efwhich is included in idna v3.4. When using the old setuptools infra, the package is incorrectly installed as v0.0, which is then incorrectly detected by other packages when using setuptools pkg_resources. The issue can be reproduced with the command: python3 <<EOF __requires__ = ["idna >= 2.5"] import pkg_resources EOF which will fail with output: pkg_resources.ContextualVersionConflict: (idna 0.0.0 (/usr/lib/python3.11/site-packages), Requirement.parse('idna>=2.5'), {'hyperlink'}) pkg_resources.DistributionNotFound: The 'idna>=2.5' distribution was not found and is required by hyperlink This commit changes _SETUP_TYPE to "flit" to fix this issue. Signed-off-by: Julien Olivain <ju.o@free.fr> Reviewed-by: Marcus Hoffmann <marcus.hoffmann@othermo.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit8a9da9a8ca) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>