diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-16 18:32:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-17 16:44:33 +0000 |
commit | fc364f1c559ebf70e69812992bd0e15469ac6917 (patch) | |
tree | 9daf2a0eef9a84bbb6d824afc54448411b9b3ad0 | |
parent | 0f31b46827503c8908851bda4e30bcb49a475f02 (diff) | |
download | poky-fc364f1c559ebf70e69812992bd0e15469ac6917.tar.gz |
classes/setuptools_build_meta: 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: 39a05e44f232775560ad79e49ffe4fb17ed6533c)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/setuptools_build_meta.bbclass | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass index 8791a2965f..62b037363d 100644 --- a/meta/classes/setuptools_build_meta.bbclass +++ b/meta/classes/setuptools_build_meta.bbclass | |||
@@ -2,15 +2,10 @@ inherit setuptools3-base python_pep517 | |||
2 | 2 | ||
3 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 3 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
4 | 4 | ||
5 | PEP517_BUILD_API = "setuptools.build_meta" | ||
6 | |||
5 | setuptools_build_meta_do_configure () { | 7 | setuptools_build_meta_do_configure () { |
6 | : | 8 | : |
7 | } | 9 | } |
8 | 10 | ||
9 | # TODO: ideally this uses pypa/build | 11 | EXPORT_FUNCTIONS do_configure |
10 | setuptools_build_meta_do_compile () { | ||
11 | cd ${PEP517_SOURCE_PATH} | ||
12 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PEP517_WHEEL_PATH}')" | ||
13 | } | ||
14 | do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" | ||
15 | |||
16 | EXPORT_FUNCTIONS do_configure do_compile | ||