mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-04 23:10:28 +00:00
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>
16 lines
382 B
Plaintext
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
|
|
}
|