]> code.ossystems Code Review - openembedded-core.git/commit
pip_install_wheel: improved wheel filename guess
authorTim Orling <ticotimo@gmail.com>
Fri, 25 Feb 2022 04:03:31 +0000 (20:03 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Feb 2022 15:43:50 +0000 (15:43 +0000)
commit9fc8e55892374f1e63b4c995fe1a5539c42d24e0
treed96ba360a254cd337f3c959533ad6d007823bc32
parentcd25e5544ca3f48cc4c32001e917aa3dc20dd79a
pip_install_wheel: improved wheel filename guess

Rather than only use PYPI_PACKAGE as a guess, fall back on PN for cases
where a recipe does not inherit pypi.

Wheels can only have alphanumeric characters in the 'distribution'
name [1]. Any other characters are replaced with an underscore. Provide a
function to replace dash with underscore.

[1] https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pip_install_wheel.bbclass