aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/classes/poetry_core.bbclass
blob: 4b3f9631e276d96eac99b287b4de0e7817dde3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}