mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
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>
This commit is contained in:
parent
238814e5a1
commit
d740ecb8c4
15
meta-python/classes/poetry_core.bbclass
Normal file
15
meta-python/classes/poetry_core.bbclass
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user