summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-26 08:20:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-26 08:21:08 +0000
commit7638fcf5c18975185fdc8c19fc4bf7fc55d9b044 (patch)
treea66559f26bc465537e8287f796fa69a41719d87d /meta
parent49168f5d557780dfcfac997f3092923ffa747215 (diff)
downloadpoky-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.bbclass2
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
3def guess_pip_install_package_name(d): 3def 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
7PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}" 7PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}"
8PIP_INSTALL_DIST_PATH ?= "${B}/dist" 8PIP_INSTALL_DIST_PATH ?= "${B}/dist"