User Tools

Site Tools


oe_yp_python3_recipes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
oe_yp_python3_recipes [2020/06/16 17:01]
rpjday
oe_yp_python3_recipes [2020/06/16 17:19] (current)
rpjday [PYPI_PACKAGE]
Line 39: Line 39:
   * ''​LICENSE''​   * ''​LICENSE''​
   * ''​LIC_FILES_CHKSUM''​   * ''​LIC_FILES_CHKSUM''​
 +  * ''​SECTION = "​devel/​python"''​
   * ''​SRC_URI[md5sum]''​   * ''​SRC_URI[md5sum]''​
   * ''​SRC_URI[sha256sum]''​   * ''​SRC_URI[sha256sum]''​
Line 54: Line 55:
 python3-sijax_0.3.2.bb:​HOMEPAGE = "​https://​github.com/​spantaleev/​sijax-python"​ python3-sijax_0.3.2.bb:​HOMEPAGE = "​https://​github.com/​spantaleev/​sijax-python"​
 python3-simpleeval_0.9.10.bb:​HOMEPAGE = "​https://​pypi.org/​project/​simpleeval/"​ python3-simpleeval_0.9.10.bb:​HOMEPAGE = "​https://​pypi.org/​project/​simpleeval/"​
 +...
 +</​code>​
 +
 +===== PYPI_PACKAGE =====
 +
 +Unnecessary if:
 +
 +<​code>​
 +def pypi_package(d):​
 +    bpn = d.getVar('​BPN'​)
 +    if bpn.startswith('​python-'​):​
 +        return bpn[7:]
 +    elif bpn.startswith('​python3-'​):​
 +        return bpn[8:]
 +    return bpn
 +    ​
 +PYPI_PACKAGE ?= "​${@pypi_package(d)}"​
 +</​code>​
 +
 +Examples:
 +
 +<​code>​
 +python3-asn1crypto_1.3.0.bb:​PYPI_PACKAGE = "​asn1crypto"​
 +python3-async-timeout_3.0.1.bb:​PYPI_PACKAGE = "​async-timeout"​
 +...
 +python3-raven_6.10.0.bb:​PYPI_PACKAGE = "​raven"​
 +python3-rfc3339-validator_0.1.1.bb:​PYPI_PACKAGE = "​rfc3339_validator"​
 +python3-rfc3986-validator_0.1.1.bb:​PYPI_PACKAGE = "​rfc3986_validator"​
 +python3-robotframework-seriallibrary_0.3.1.bb:​PYPI_PACKAGE = "​robotframework-seriallibrary"​
 +</​code>​
 +
 +===== S =====
 +
 +Default:
 +
 +<​code>​
 +S = "​${WORKDIR}/​${PYPI_PACKAGE}-${PV}"​
 +</​code>​
 +
 +Overrides:
 +
 +<​code>​
 +python3-absl_0.9.0.bb:​S = "​${WORKDIR}/​git"​
 +python3-astor_0.8.1.bb:​S = "​${WORKDIR}/​git"​
 +python3-configshell-fb_1.1.28.bb:​S = "​${WORKDIR}/​git"​
 +python3-dbussy_1.3.bb:​S = "​${WORKDIR}/​git"​
 +python3-dt-schema_git.bb:​S = "​${WORKDIR}/​git"​
 ... ...
 </​code>​ </​code>​
oe_yp_python3_recipes.1592326879.txt.gz ยท Last modified: 2020/06/16 17:01 by rpjday