poky/meta/recipes-devtools/python/python3-maturin_1.8.6.bb
Alexander Kanavin e1f059f34e meta: set S to be in UNPACKDIR in recipes that explicitly set S
(From OE-Core rev: 7321cc17ae5483f17fe9cdffea7b62acd9d9c3a2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-20 12:07:26 +01:00

45 lines
1.3 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"
# This is needed until Cargo.lock has libc-0.2.172+
SRC_URI += "file://0001-Define-more-ioctl-codes-on-riscv32gc-unknown-linux-g.patch;patchdir=${CARGO_VENDORING_DIRECTORY}/libc-0.2.167"
SRC_URI[sha256sum] = "0e0dc2e0bfaa2e1bd238e0236cf8a2b7e2250ccaa29c1aa8d0e61fa664b0289d"
S = "${UNPACKDIR}/maturin-${PV}"
CFLAGS += "-ffile-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"