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 <[email protected]>
---
 scripts/lib/recipetool/create_buildsys_python.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246781): 
https://lists.openembedded.org/g/openembedded-core/message/246781
Mute This Topic: https://lists.openembedded.org/mt/121476278/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to