Files
meta-openembedded/meta-python/classes/poetry_core.bbclass
Tim Orling d740ecb8c4 poetry_core: add helper class
poetry.core.masonry.api is one of the common PEP-517 build backends.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-03 08:50:19 -08:00

16 lines
382 B
Plaintext

inherit pip_install_wheel python3native python3-dir setuptools3-base
DEPENDS += "python3 python3-poetry-core-native python3-pip-native"
do_configure () {
mkdir -p ${S}/dist
cat > ${S}/build-it.py << EOF
from poetry.core.masonry import api
api.build_wheel('${S}/dist')
EOF
}
do_compile () {
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
}