summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-maturin_1.7.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-07-10 17:43:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-16 11:25:29 +0100
commit18870e2cb3bfd7ba9ef445151df32812d4292bfc (patch)
treecbf74cfabc8d5871a3c4cab8e07f93d80a753de5 /meta/recipes-devtools/python/python3-maturin_1.7.0.bb
parent2ffb86f4090704d85494ef7380aba67f0be0007e (diff)
downloadpoky-18870e2cb3bfd7ba9ef445151df32812d4292bfc.tar.gz
python3-maturin: upgrade 1.6.0 -> 1.7.0
Changelog: ============ - Initial iOS support - Remove old import hook in #2105, use maturin-import-hook instead - Bump MSRV to 1.74.0 - Add support for overriding wheel tag with _PYTHON_HOST_PLATFORM - Don't add files to an archive more than once - Only use base python executable when MATURIN_PEP517_USE_BASE_PYTHON is set (From OE-Core rev: d0c4ce388721a47608abc4d908e266ea969a0161) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-maturin_1.7.0.bb')
-rw-r--r--meta/recipes-devtools/python/python3-maturin_1.7.0.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-maturin_1.7.0.bb b/meta/recipes-devtools/python/python3-maturin_1.7.0.bb
new file mode 100644
index 0000000000..779a66840e
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-maturin_1.7.0.bb
@@ -0,0 +1,42 @@
1SUMMARY = "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
8SRC_URI[sha256sum] = "1ba5277dd7832dc6181d69a005182b97b3520945825058484ffd9296f2efb59c"
9
10S = "${WORKDIR}/maturin-${PV}"
11
12CFLAGS += "-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
13
14DEPENDS += "\
15 python3-setuptools-rust-native \
16 python3-semantic-version-native \
17 python3-setuptools-rust \
18"
19
20require ${BPN}-crates.inc
21
22inherit pypi cargo-update-recipe-crates python_pyo3 python_setuptools_build_meta
23
24do_configure() {
25 python_pyo3_do_configure
26 cargo_common_do_configure
27 python_pep517_do_configure
28}
29
30RDEPENDS:${PN} += "\
31 cargo \
32 python3-json \
33 rust \
34"
35
36RRECOMMENDS:${PN} += "\
37 python3-ensurepip \
38 python3-pip \
39 python3-venv \
40"
41
42BBCLASSEXTEND = "native nativesdk"