All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH v2 1/4] python_mesonpy.bbclass: New class
@ 2023-03-17  7:25 Zoltán Böszörményi
  2023-03-17  7:25 ` [meta-python][PATCH v2 2/4] python3-patchelf: New recipe Zoltán Böszörményi
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Zoltán Böszörményi @ 2023-03-17  7:25 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Zoltán Böszörményi

Some python modules (e.g. SciPy, scikit-image) use meson-python
(a.k.a. mesonpy) in pyproject.toml:

    [build-system]
    build-backend = 'mesonpy'

This class, together with python3-meson-python and its dependencies
will allow building such modules.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-python/classes/python_mesonpy.bbclass | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/classes/python_mesonpy.bbclass

diff --git a/meta-python/classes/python_mesonpy.bbclass b/meta-python/classes/python_mesonpy.bbclass
new file mode 100644
index 000000000..f4c4a217a
--- /dev/null
+++ b/meta-python/classes/python_mesonpy.bbclass
@@ -0,0 +1,17 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit setuptools3-base python3targetconfig python_pep517 meson-common
+
+DEPENDS += "python3-wheel-native python3-meson-python-native"
+
+PEP517_BUILD_OPTS = '--config-setting=setup-args="${MESONOPTS} ${MESON_SOURCEPATH} ${B} ${MESON_CROSS_FILE} ${EXTRA_OEMESON}"'
+
+export MESONPY_BUILD = "${B}"
+
+# Python pyx -> c -> so build leaves absolute build paths in the code
+INSANE_SKIP:${PN} += "buildpaths"
+INSANE_SKIP:${PN}-src += "buildpaths"
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-03-23 11:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-17  7:25 [meta-python][PATCH v2 1/4] python_mesonpy.bbclass: New class Zoltán Böszörményi
2023-03-17  7:25 ` [meta-python][PATCH v2 2/4] python3-patchelf: New recipe Zoltán Böszörményi
2023-03-20 16:09   ` [oe] " Ross Burton
2023-03-17  7:25 ` [meta-python][PATCH v2 3/4] python3-pyproject-metadata: " Zoltán Böszörményi
2023-03-20 14:45   ` [oe] " Ross Burton
2023-03-17  7:25 ` [meta-python][PATCH v2 4/4] python3-meson-python: " Zoltán Böszörményi
2023-03-20 14:52   ` [oe] " Ross Burton
2023-03-20 14:46 ` [oe] [meta-python][PATCH v2 1/4] python_mesonpy.bbclass: New class Ross Burton
2023-03-20 15:01   ` Böszörményi Zoltán
2023-03-20 16:26     ` Ross Burton
2023-03-22  8:18       ` Böszörményi Zoltán
     [not found]       ` <174EAFE93556A78F.19937@lists.openembedded.org>
2023-03-23 11:18         ` Böszörményi Zoltán

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.