diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-26 08:20:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-26 08:20:53 +0000 |
commit | 498342f483118d22f529c4e255cc50455d51e9ed (patch) | |
tree | db340ea215db1858f68e868d0c55ceb73eebb2fb | |
parent | 9fc8e55892374f1e63b4c995fe1a5539c42d24e0 (diff) | |
download | openembedded-core-contrib-498342f483118d22f529c4e255cc50455d51e9ed.tar.gz |
pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default
This fixes the name for native and nativesdk recipes.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/pip_install_wheel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass index 9f9feda6ee..5b7e5cd706 100644 --- a/meta/classes/pip_install_wheel.bbclass +++ b/meta/classes/pip_install_wheel.bbclass @@ -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" |