diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-07 19:42:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-08 09:44:28 +0000 |
commit | bcd7e29a3b754a3e5cdc7f0db56b89d0c6369c8e (patch) | |
tree | 01569ded43a778377ea00416d706741413536c3b /meta/classes | |
parent | 025fa5266e0b83faab16811cb3662fa2b5885a99 (diff) | |
download | poky-bcd7e29a3b754a3e5cdc7f0db56b89d0c6369c8e.tar.gz |
setuptools_build_meta: clean up configure/compile
Make do_configure do nothing by default as the base configure isn't
useful, and invoke the build API directly instead of writing a script.
In the future, this can simply call python3-build.
(From OE-Core rev: ccad9d0218ef69bdb8c708029445fcd661f1c490)
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/setuptools_build_meta.bbclass | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass index 8f5479e922..0651cca0a0 100644 --- a/meta/classes/setuptools_build_meta.bbclass +++ b/meta/classes/setuptools_build_meta.bbclass | |||
@@ -3,16 +3,13 @@ inherit pip_install_wheel setuptools3-base | |||
3 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 3 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
4 | 4 | ||
5 | setuptools_build_meta_do_configure () { | 5 | setuptools_build_meta_do_configure () { |
6 | mkdir -p ${S}/dist | 6 | : |
7 | cat > ${S}/build-it.py << EOF | ||
8 | from setuptools import build_meta | ||
9 | wheel = build_meta.build_wheel('./dist') | ||
10 | print(wheel) | ||
11 | EOF | ||
12 | } | 7 | } |
13 | 8 | ||
9 | # TODO: ideally this uses pypa/build | ||
14 | setuptools_build_meta_do_compile () { | 10 | setuptools_build_meta_do_compile () { |
15 | nativepython3 ${S}/build-it.py | 11 | mkdir -p ${S}/dist |
12 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('./dist')" | ||
16 | } | 13 | } |
17 | 14 | ||
18 | EXPORT_FUNCTIONS do_configure do_compile | 15 | EXPORT_FUNCTIONS do_configure do_compile |