| Message ID | 20260928173158.781301-4-ross.burton@arm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [RFC,1/4] classes/pypi: change PYPI_PACKAGE to be normalised | expand |
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index 1d8a3b8dfda..0c5f44b9663 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py @@ -238,7 +238,7 @@ class PythonRecipeHandler(RecipeHandler): if bbvar == "PN": # by convention python recipes start with "python3-" if not value.startswith('python'): - value = 'python3-' + value + value = 'python3-' + self.pypi_normalise(value) if bbvar not in extravalues and value: extravalues[bbvar] = value
When constructing PN for python recipes, normalise the package name. For example, the package boolean.py uses python3-boolean-py.bb instead of python3-boolean.py.bb. Signed-off-by: Ross Burton <ross.burton@arm.com> --- scripts/lib/recipetool/create_buildsys_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)