diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/flit_core.bbclass | 16 |
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 @@ | |||
1 | inherit pip_install_wheel python3native python3-dir | ||
2 | |||
3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" | ||
4 | |||
5 | do_configure () { | ||
6 | mkdir -p ${S}/dist | ||
7 | cat > ${S}/build-it.py << EOF | ||
8 | from flit_core import buildapi | ||
9 | buildapi.build_wheel('./dist') | ||
10 | EOF | ||
11 | } | ||
12 | |||
13 | do_compile () { | ||
14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py | ||
15 | } | ||
16 | |||