Instead of implementing our own do_compile, set PEP517_BUILD_API and
use the generic do_compile.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
DEPENDS += "python3-poetry-core-native"
+PEP517_BUILD_API = "poetry.core.masonry.api"
+
python_poetry_core_do_configure () {
:
}
-# TODO: ideally this uses pypa/build
-python_poetry_core_do_compile () {
- nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
-}
-do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
-
-EXPORT_FUNCTIONS do_configure do_compile
+EXPORT_FUNCTIONS do_configure