Files
poky/meta/classes/flit_core.bbclass
Tim Orling 596bc1658e flit_core: inherit setuptools3-base
This helps bridge the old setuptools3 behavior.

FILES:${PN} has sane defaults in setuptools3-base

(From OE-Core rev: b1bb4e2d73985c6e8cf03b0fea94e8b739648cf7)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-27 12:34:40 +00:00

17 lines
378 B
Plaintext

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
}