From: Richard Purdie Date: Sat, 26 Feb 2022 08:20:25 +0000 (+0000) Subject: pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=498342f483118d22f529c4e255cc50455d51e9ed;p=openembedded-core.git 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 --- 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"