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:21:08 +0000 |
commit | 7638fcf5c18975185fdc8c19fc4bf7fc55d9b044 (patch) | |
tree | a66559f26bc465537e8287f796fa69a41719d87d /meta | |
parent | 49168f5d557780dfcfac997f3092923ffa747215 (diff) | |
download | poky-7638fcf5c18975185fdc8c19fc4bf7fc55d9b044.tar.gz |
pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default
This fixes the name for native and nativesdk recipes.
(From OE-Core rev: 498342f483118d22f529c4e255cc50455d51e9ed)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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" | |||
2 | 2 | ||
3 | def guess_pip_install_package_name(d): | 3 | def guess_pip_install_package_name(d): |
4 | '''https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode''' | 4 | '''https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode''' |
5 | return (d.getVar('PYPI_PACKAGE') or d.getVar('PN')).replace('-', '_') | 5 | return (d.getVar('PYPI_PACKAGE') or d.getVar('BPN')).replace('-', '_') |
6 | 6 | ||
7 | PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}" | 7 | PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}" |
8 | PIP_INSTALL_DIST_PATH ?= "${B}/dist" | 8 | PIP_INSTALL_DIST_PATH ?= "${B}/dist" |