[PATCH] test: Add setuptools to test requirements.txt

Tom Rini trini at konsulko.com
Mon May 5 23:08:17 CEST 2025


On Mon, May 05, 2025 at 02:50:51PM -0600, Javier Tia wrote:

> It solves the following error:
> 
> ❯ ./test/py/test.py --bd sandbox --build
> +make O=/u-boot/build-sandbox -s sandbox_defconfig
> +make O=/u-boot/build-sandbox -s -j32
> Traceback (most recent call last):
>   File "/u-boot/build-sandbox/../scripts/dtc/pylibfdt/setup.py", line 23, in <module>
>     from setuptools import setup, Extension
> ModuleNotFoundError: No module named 'setuptools
> 
> Signed-off-by: Javier Tia <javier.tia at linaro.org>
> ---
>  test/py/requirements.txt | 1 +
>  1 file changed, 1 insertion(+)

This is the wrong place. You can't build U-Boot without
python3-setuptools being available, so it's part of the implicit or
explicit dependencies in doc/build/gcc.rst. I believe for Ubuntu/etc
it's implicit but should likely be explicit.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250505/596ebb83/attachment.sig>


More information about the U-Boot mailing list