summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/flit_core.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
new file mode 100644
index 0000000000..0f2eec85d0
--- /dev/null
+++ b/meta/classes/flit_core.bbclass
@@ -0,0 +1,16 @@
1inherit pip_install_wheel python3native python3-dir
2
3DEPENDS += "python3 python3-flit-core-native python3-pip-native"
4
5do_configure () {
6 mkdir -p ${S}/dist
7 cat > ${S}/build-it.py << EOF
8from flit_core import buildapi
9buildapi.build_wheel('./dist')
10EOF
11}
12
13do_compile () {
14 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
15}
16