mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-17 22:48:28 +00:00
python3-flask-versioned: Fix PYPA_WHEEL name
Add function to generate expected PYPA_WHEEL name. Generated name: /yp/builds/meta-qtec-distro/tmp/work/dbfp4-poky-linux/python3-flask-versioned/0.9.4-20101221-r0/Flask-Versioned-0.9.4-20101221/dist/ Flask_Versioned-0.9.4.post20101221-py3-none-any.whl Default (wrong) name: Flask_Versioned-0.9.4-20101221-*.whl Error: WARNING: Requirement '/yp/builds/meta-qtec-distro/tmp/work/dbfp4-poky-linux/python3-flask-versioned/0.9.4-20101221-r0/Flask-Versioned-0.9.4-20101221/dist/Flask_Versioned-0.9.4-20101221-*.whl' looks like a filename, but the file does not exist ERROR: Flask_Versioned-0.9.4-20101221-*.whl is not a valid wheel filename. Signed-off-by: Daniel Gomez <daniel@qtec.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
@@ -7,3 +7,10 @@ PYPI_PACKAGE = "Flask-Versioned"
|
||||
SRC_URI[sha256sum] = "516694dc860a1bc4f22ab60b324a85083c0150522be109282a3bed681057fd34"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
def get_pypa_wheel_name(d):
|
||||
return (d.getVar('PIP_INSTALL_DIST_PATH') + '/' + \
|
||||
d.getVar('PIP_INSTALL_PACKAGE') + '-' + \
|
||||
d.getVar('PV').replace('-', '.post') + '-*.whl')
|
||||
|
||||
PYPA_WHEEL = "${@get_pypa_wheel_name(d)}"
|
||||
|
||||
Reference in New Issue
Block a user