summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-16 18:32:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-17 16:44:33 +0000
commit49fe9edcde10b24140a1682ee5f79e86d572d07c (patch)
treef8af9c06dcd552b2da8e8d04c7dc577f05ad0829 /meta/classes
parent4f22a746d8b76066940dd7f8bf18a3e240d24c73 (diff)
downloadpoky-49fe9edcde10b24140a1682ee5f79e86d572d07c.tar.gz
classes/python_poetry_core: use python_pep517_do_compile
Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. (From OE-Core rev: e38afe528f25038f5adb7a7a94a1e007011696ee) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/python_poetry_core.bbclass10
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/classes/python_poetry_core.bbclass b/meta/classes/python_poetry_core.bbclass
index 47b2fe46d5..3fecb6c6bb 100644
--- a/meta/classes/python_poetry_core.bbclass
+++ b/meta/classes/python_poetry_core.bbclass
@@ -2,14 +2,10 @@ inherit python_pep517 python3native setuptools3-base
2 2
3DEPENDS += "python3-poetry-core-native" 3DEPENDS += "python3-poetry-core-native"
4 4
5PEP517_BUILD_API = "poetry.core.masonry.api"
6
5python_poetry_core_do_configure () { 7python_poetry_core_do_configure () {
6 : 8 :
7} 9}
8 10
9# TODO: ideally this uses pypa/build 11EXPORT_FUNCTIONS do_configure
10python_poetry_core_do_compile () {
11 nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
12}
13do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
14
15EXPORT_FUNCTIONS do_configure do_compile