blob: ed19ee647a0b11ad9c8b2ef00d409194b84e86af [file] [log] [blame]
Patrick Williams169d7bc2024-01-05 11:33:25 -06001SUMMARY = "Build and publish crates with pyo3, rust-cpython, cffi bindings and rust binaries as python packages"
2HOMEPAGE = "https://github.com/pyo3/maturin"
3SECTION = "devel/python"
4LICENSE = "MIT | Apache-2.0"
5LIC_FILES_CHKSUM = "file://license-apache;md5=1836efb2eb779966696f473ee8540542 \
6 file://license-mit;md5=85fd3b67069cff784d98ebfc7d5c0797"
7
Patrick Williams39653562024-03-01 08:54:02 -06008SRC_URI += "file://0001-Add-32-bit-RISC-V-support.patch"
Patrick Williams169d7bc2024-01-05 11:33:25 -06009SRC_URI[sha256sum] = "ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378bf93790"
10
11S = "${WORKDIR}/maturin-${PV}"
12
13CFLAGS:append = " -fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
14
15DEPENDS += "\
16 python3-setuptools-rust-native \
17 python3-semantic-version-native \
18 python3-setuptools-rust \
19"
20
21require ${BPN}-crates.inc
22
23inherit pypi cargo-update-recipe-crates python_pyo3 python_setuptools_build_meta
24
25do_configure() {
26 python_pyo3_do_configure
27 cargo_common_do_configure
28 python_pep517_do_configure
29}
30
31RDEPENDS:${PN} += "\
32 cargo \
33 python3-json \
34 rust \
35"
36
37RRECOMMENDS:${PN} += "\
38 python3-ensurepip \
39 python3-pip \
40 python3-venv \
41"
42
43BBCLASSEXTEND = "native nativesdk"