]> code.ossystems Code Review - openembedded-core.git/commitdiff
pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Feb 2022 08:20:25 +0000 (08:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Feb 2022 08:20:53 +0000 (08:20 +0000)
This fixes the name for native and nativesdk recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pip_install_wheel.bbclass

index 9f9feda6ee0e41f20f25e567118e5b5440c57462..5b7e5cd706477f421dc6729e3193675ca0cd9f3e 100644 (file)
@@ -2,7 +2,7 @@ DEPENDS:append = " python3-pip-native"
 
 def guess_pip_install_package_name(d):
     '''https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode'''
-    return (d.getVar('PYPI_PACKAGE') or d.getVar('PN')).replace('-', '_')
+    return (d.getVar('PYPI_PACKAGE') or d.getVar('BPN')).replace('-', '_')
 
 PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}"
 PIP_INSTALL_DIST_PATH ?= "${B}/dist"