[PATCH] test/py: Re-add setuptools to requirements.txt

Javier Martinez Canillas javierm at redhat.com
Mon Jun 16 20:53:32 CEST 2025


The commit 859621b47f9e ("python: Recreate test/py and tools/buildman
requirements.txt files") recreated the python requirements but dropped
the setuptools module that is used by the test harness.

This leads to the following error when trying to run a test:

    pytest --build --bd sandbox test/py/tests/test_net.py
    +make O=/home/javier/devel/u-boot/build-sandbox -s sandbox_defconfig
    +make O=/home/javier/devel/u-boot/build-sandbox -s -j8
    Traceback (most recent call last):
      File "/home/javier/devel/u-boot/build-sandbox/../scripts/dtc/pylibfdt/setup.py", line 23, in <module>
        from setuptools import setup, Extension
    ModuleNotFoundError: No module named 'setuptools'
    make[3]: *** [../scripts/dtc/pylibfdt/Makefile:33: rebuild] Error 1
    make[2]: *** [../scripts/Makefile.build:398: scripts/dtc/pylibfdt] Error 2
    make[1]: *** [/home/javier/devel/u-boot/Makefile:2079: scripts_dtc] Error 2
    make: *** [Makefile:177: sub-make] Error 2
    Exit code: 2

Fixes: 859621b47f9e ("python: Recreate test/py and tools/buildman requirements.txt files")
Signed-off-by: Javier Martinez Canillas <javierm at redhat.com>
---

 test/py/requirements.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/py/requirements.txt b/test/py/requirements.txt
index 804a427b3514..17ffa52f28c9 100644
--- a/test/py/requirements.txt
+++ b/test/py/requirements.txt
@@ -3,3 +3,4 @@ pycryptodomex==3.21.0
 pytest==6.2.5
 pytest-xdist==2.5.0
 FATtools==1.0.42
+setuptools==75.8.0
-- 
2.49.0

base-commit: c5afa1fef49f55146e78d6157470520391c40eca
branch: fix-test



More information about the U-Boot mailing list