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

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
}