summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/python_mesonpy.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/python_mesonpy.bbclass')
-rw-r--r--meta/classes-recipe/python_mesonpy.bbclass46
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/classes-recipe/python_mesonpy.bbclass b/meta/classes-recipe/python_mesonpy.bbclass
deleted file mode 100644
index 3613ea19c7..0000000000
--- a/meta/classes-recipe/python_mesonpy.bbclass
+++ /dev/null
@@ -1,46 +0,0 @@
1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7inherit meson python_pep517
8
9# meson_do_qa_configure does the wrong thing here because
10# mesonpy runs "meson setup ..." in do_compile context.
11# Make it a dummy function.
12meson_do_qa_configure () {
13 :
14}
15
16# This prevents the meson error:
17# ERROR: Got argument buildtype as both -Dbuildtype and --buildtype. Pick one.
18MESONOPTS:remove = "--buildtype ${MESON_BUILDTYPE}"
19
20DEPENDS += "python3-wheel-native python3-meson-python-native"
21
22def mesonpy_get_args(d):
23 vars = ['MESONOPTS', 'MESON_CROSS_FILE', 'EXTRA_OEMESON']
24 varlist = []
25 for var in vars:
26 value = d.getVar(var)
27 vallist = value.split()
28 for elem in vallist:
29 varlist.append("-Csetup-args=" + elem)
30 return ' '.join(varlist)
31
32PEP517_BUILD_OPTS = "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}"
33
34python_mesonpy_do_configure () {
35 python_pep517_do_configure
36}
37
38python_mesonpy_do_compile () {
39 python_pep517_do_compile
40}
41
42python_mesonpy_do_install () {
43 python_pep517_do_install
44}
45
46EXPORT_FUNCTIONS do_configure do_compile do_install