diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-16 18:32:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-17 16:44:33 +0000 |
commit | 49fe9edcde10b24140a1682ee5f79e86d572d07c (patch) | |
tree | f8af9c06dcd552b2da8e8d04c7dc577f05ad0829 /meta/classes | |
parent | 4f22a746d8b76066940dd7f8bf18a3e240d24c73 (diff) | |
download | poky-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.bbclass | 10 |
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 | ||
3 | DEPENDS += "python3-poetry-core-native" | 3 | DEPENDS += "python3-poetry-core-native" |
4 | 4 | ||
5 | PEP517_BUILD_API = "poetry.core.masonry.api" | ||
6 | |||
5 | python_poetry_core_do_configure () { | 7 | python_poetry_core_do_configure () { |
6 | : | 8 | : |
7 | } | 9 | } |
8 | 10 | ||
9 | # TODO: ideally this uses pypa/build | 11 | EXPORT_FUNCTIONS do_configure |
10 | python_poetry_core_do_compile () { | ||
11 | nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')" | ||
12 | } | ||
13 | do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" | ||
14 | |||
15 | EXPORT_FUNCTIONS do_configure do_compile | ||