Do not try to detect standalone python modules at the top level, so setuptools stops searching for: command, terminal, ... as independent modules and instead relies on package discovery.
Steps to reproduce the issue without the patch: git clone https://source.denx.de/u-boot/u-boot.git cd u-boot python3 -m venv myenv source myenv/bin/activate pip3 install tools/u_boot_pylib/ ... error: Multiple top-level modules discovered in a flat-layout: ['command', 'terminal', 'test_util', 'tout', 'cros_subprocess', 'tools', 'gitutil']. Paul HENRYS: tools: u_boot_pylib: disable standalone module detection tools/u_boot_pylib/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) -- 2.43.0

