Picobuild is a pico-scale Python PEP517 build frontend, designed to have minimal dependencies (via vendoring) to be well suited for building source-based distributions, such as OpenEmbedded.
Signed-off-by: Ross Burton <[email protected]> --- .../python/python3-picobuild_0.1.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-picobuild_0.1.bb diff --git a/meta/recipes-devtools/python/python3-picobuild_0.1.bb b/meta/recipes-devtools/python/python3-picobuild_0.1.bb new file mode 100644 index 00000000000..bbd3636eea8 --- /dev/null +++ b/meta/recipes-devtools/python/python3-picobuild_0.1.bb @@ -0,0 +1,25 @@ +SUMMARY = "Library and tool for installing Python wheels" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=6c811a9fbdf5641ff0b0d43fbbb440e5" +# TODO vendorered license files + +SRC_URI = "git://gitlab.com/rossburton/picobuild.git;protocol=https;branch=main" +SRCREV = "f08fe0375e2b93e3363416f210534d1ac3f8fc68" + +S = "${WORKDIR}/git" + +inherit python_flit_core + +# For target builds we can deleted the vendored libraries and RDEPEND on them +# instead. Use an explicit list to be sure we delete what we RDEPEND on. +do_install:append:class-target() { + rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/picobuild/vendored/packaging + rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/picobuild/vendored/pep517* + rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/picobuild/vendored/pyparsing + rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/picobuild/vendored/tomli +} + +RDEPENDS:${PN}:append:class-target = " python3-tomli python3-pep517 python3-packaging python3-pyparsing" + +BBCLASSEXTEND = "native nativesdk" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#166193): https://lists.openembedded.org/g/openembedded-core/message/166193 Mute This Topic: https://lists.openembedded.org/mt/91359153/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
