mirror of
https://git.yoctoproject.org/poky
synced 2026-01-30 05:18:43 +01:00
Import a merged patch that sort external libs in the wheel file generated by maturin. That improve reproducibility. (From OE-Core rev: 055519ae0da73afd1bfb89d74193b41751dc9a80) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> CC: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 66da28f85727206c0e647efba93c1be028519fe5) Signed-off-by: Steve Sakoman <steve@sakoman.com>
51 lines
1.5 KiB
BlitzBasic
51 lines
1.5 KiB
BlitzBasic
SUMMARY = "Build and publish crates with pyo3, rust-cpython, cffi bindings and rust binaries as python packages"
|
|
HOMEPAGE = "https://github.com/pyo3/maturin"
|
|
SECTION = "devel/python"
|
|
LICENSE = "MIT | Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://license-apache;md5=1836efb2eb779966696f473ee8540542 \
|
|
file://license-mit;md5=85fd3b67069cff784d98ebfc7d5c0797"
|
|
|
|
SRC_URI[sha256sum] = "147754cb3d81177ee12d9baf575d93549e76121dacd3544ad6a50ab718de2b9c"
|
|
SRC_URI:append = "\
|
|
file://0001-Extract-extension-architecture-name-resolvation-code.patch \
|
|
file://0002-Fix-cross-compilation-issue-with-linux-armv7l-archit.patch \
|
|
file://0003-Extract-extension-ABI-name-resolvation-code-as-helpe.patch \
|
|
file://0004-Fix-cross-compilation-issue-with-linux-ppc-architect.patch \
|
|
file://0005-Fix-cross-compilation-issue-with-linux-mips64-archit.patch \
|
|
file://0001-build_context-improve-wheel-reproducibility-by-sorti.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/maturin-${PV}"
|
|
|
|
CFLAGS += "-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
|
|
|
|
DEPENDS += "\
|
|
python3-setuptools-rust-native \
|
|
python3-semantic-version-native \
|
|
python3-setuptools-rust \
|
|
"
|
|
|
|
require ${BPN}-crates.inc
|
|
|
|
inherit pypi cargo-update-recipe-crates python_pyo3 python_setuptools_build_meta
|
|
|
|
do_configure() {
|
|
python_pyo3_do_configure
|
|
cargo_common_do_configure
|
|
python_pep517_do_configure
|
|
}
|
|
|
|
RDEPENDS:${PN} += "\
|
|
cargo \
|
|
python3-json \
|
|
rust \
|
|
"
|
|
|
|
RRECOMMENDS:${PN} += "\
|
|
python3-ensurepip \
|
|
python3-pip \
|
|
python3-venv \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|