On Wed, Mar 15, 2023 at 1:04 AM Zoltan Boszormenyi wrote: > 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 > --- > ...python_setuptools_build_meta_mesonpy.bbclass | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 > meta-python/classes/python_setuptools_build_meta_mesonpy.bbclass > The name of the class is overly long. If you look at the other classes in oe-core, they basically use the build-backend value, prefixed with the "python_" namespace, so I would propose just "python_mesonpy.bbclass" The python_setuptools_build_meta.bbclass was named as such because the build-backend is "setuptools.build_meta" such as in https://github.com/jaraco/zipp/blob/main/pyproject.toml#L3 > diff --git > a/meta-python/classes/python_setuptools_build_meta_mesonpy.bbclass > b/meta-python/classes/python_setuptools_build_meta_mesonpy.bbclass > new file mode 100644 > index 000000000..1d3fdbd7c > --- /dev/null > +++ b/meta-python/classes/python_setuptools_build_meta_mesonpy.bbclass > @@ -0,0 +1,17 @@ > +# > +# Copyright OpenEmbedded Contributors > +# > +# SPDX-License-Identifier: MIT > +# > + > +inherit setuptools3-base pkgconfig meson-common python3targetconfig > python_pep517 > + > +DEPENDS += "python3-setuptools-native python3-wheel-native ${@'' if > d.getVar('PN') == 'python3-meson-python-native' else > '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 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#101529): > https://lists.openembedded.org/g/openembedded-devel/message/101529 > Mute This Topic: https://lists.openembedded.org/mt/97622993/924729 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > ticotimo@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >