summaryrefslogtreecommitdiffstats
path: root/meta/classes/flit_core.bbclass
blob: 8edbd654ff2890bf7c4f98d03b40a58e01e5dff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
inherit pip_install_wheel python3native python3-dir setuptools3-base

DEPENDS += "python3 python3-flit-core-native python3-pip-native"

do_configure () {
    mkdir -p ${S}/dist
    cat > ${S}/build-it.py << EOF
from flit_core import buildapi
buildapi.build_wheel('./dist')
EOF
}

do_compile () {
    ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
}