[PATCH 2/2] tools: Fix package discovery in pyproject.toml of u_boot_pylib.

Maxim Cournoyer maxim.cournoyer at gmail.com
Fri Jul 7 23:15:32 CEST 2023


When building from source, setuptools would complain about not finding
package via its auto-discovery mechanism.  Manually specify how to
locate the files, relative to the package's directory.

* tools/u_boot_pylib/pyproject.toml: New tool.setuptools.packages.find
section.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer at gmail.com>
---

 tools/u_boot_pylib/pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/u_boot_pylib/pyproject.toml b/tools/u_boot_pylib/pyproject.toml
index 31a4c0adae..037c5d629e 100644
--- a/tools/u_boot_pylib/pyproject.toml
+++ b/tools/u_boot_pylib/pyproject.toml
@@ -20,3 +20,7 @@ classifiers = [
 [project.urls]
 "Homepage" = "https://u-boot.readthedocs.io"
 "Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues"
+
+[tool.setuptools.packages.find]
+where = [".."]
+include = ["u_boot_pylib*"]
-- 
2.40.1



More information about the U-Boot mailing list