summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-08 14:30:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-09 11:46:28 +0000
commitd2655729bc87a07c2e26222ca3a4e0cf8f6b3b6c (patch)
tree7cadd2b0815204156c591a6ae81cec1ed6ae6e54 /meta
parent442c2cca0f71b84d0110df91e5b40e14f4ba0ad5 (diff)
downloadpoky-d2655729bc87a07c2e26222ca3a4e0cf8f6b3b6c.tar.gz
flit_core: respect PIP_INSTALL_DIST_PATH
pip_install_wheel expects the wheels to be in PIP_INSTALL_DIST_PATH but this class was writing to the same directory through chance not design. Respect PIP_INSTALL_DIST_PATH as the output directory, and use [cleandirs] to ensure that it exists and is empty. Also call the flit_core.wheel module directly as this is a public entry point to the wheel building logic. (From OE-Core rev: a3d9eb8051bc2effb8130b1743ba251c1fe7c525) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/flit_core.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
index a7667795fe..3481bb5089 100644
--- a/meta/classes/flit_core.bbclass
+++ b/meta/classes/flit_core.bbclass
@@ -8,8 +8,8 @@ flit_core_do_configure () {
8 8
9# TODO: ideally this uses pypa/build 9# TODO: ideally this uses pypa/build
10flit_core_do_compile () { 10flit_core_do_compile () {
11 mkdir -p ${S}/dist 11 nativepython3 -mflit_core.wheel --outdir ${PIP_INSTALL_DIST_PATH}
12 nativepython3 -c "from flit_core import buildapi; buildapi.build_wheel('./dist')"
13} 12}
13do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
14 14
15EXPORT_FUNCTIONS do_configure do_compile 15EXPORT_FUNCTIONS do_configure do_compile