u-boot/tools/u_boot_pylib
Simon Glass ae94c3d4ee u_boot_pylib: Ensure subprocess is closed down
It isn't clear why we need to have two different paths for closing down
the pipe. Unify them and use the Python to avoid this warning:

  subprocess.py:1127: ResourceWarning: subprocess 83531 is still running

Note that this code appears to originally have come from [1] and was
committed into the ChromeOS chromiumos/platform/crosutils repo in the
bin/cros_image_to_target.py file. The addition of the extra code path
came later, so that is chosen for the fixes tag.

[1] https://codereview.chromium.org/3391008

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: a10fd93cbc patman: Make command methods return a CommandResult
2023-11-02 22:38:01 -04:00
..
__init__.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
__main__.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
command.py u_boot_pylib: Ensure subprocess is closed down 2023-11-02 22:38:01 -04:00
cros_subprocess.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
LICENSE patman: Add support for building a u_boot_tools PyPi package 2023-03-08 11:40:49 -08:00
pyproject.toml tools: Fix package discovery in pyproject.toml of u_boot_pylib. 2023-07-20 14:10:57 -06:00
README.rst patman: Add support for building a u_boot_tools PyPi package 2023-03-08 11:40:49 -08:00
terminal.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
test_util.py buildman: Enable test coverage 2023-07-24 09:34:11 -06:00
tools.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
tout.py patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00
u_boot_pylib patman: Move library functions into a library directory 2023-03-08 11:40:49 -08:00

.. SPDX-License-Identifier: GPL-2.0+

# U-Boot Python Library
=====================

This is a Python library used by various U-Boot tools, including patman,
buildman and binman.

The module can be installed with pip::

   pip install u_boot_pylib

or via setup.py::

   ./setup.py install [--user]