diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-08 14:30:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-09 11:46:28 +0000 |
commit | 37527ea5bd0e7a7e7e7c6a69548f1f66cf964ddc (patch) | |
tree | 825598cdee39a7227d3ec30d0ea63faf93ac8551 /meta | |
parent | 2df212ff6cc5307a49205beefa4b0dac5edff446 (diff) | |
download | poky-37527ea5bd0e7a7e7e7c6a69548f1f66cf964ddc.tar.gz |
setuptools_build_meta: 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.
(From OE-Core rev: 1a3625c576afe823efc50dc0b1071e4952339f8e)
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/setuptools_build_meta.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass index 0651cca0a0..18ae2e6004 100644 --- a/meta/classes/setuptools_build_meta.bbclass +++ b/meta/classes/setuptools_build_meta.bbclass | |||
@@ -8,8 +8,8 @@ setuptools_build_meta_do_configure () { | |||
8 | 8 | ||
9 | # TODO: ideally this uses pypa/build | 9 | # TODO: ideally this uses pypa/build |
10 | setuptools_build_meta_do_compile () { | 10 | setuptools_build_meta_do_compile () { |
11 | mkdir -p ${S}/dist | 11 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PIP_INSTALL_DIST_PATH}')" |
12 | nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('./dist')" | ||
13 | } | 12 | } |
13 | do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" | ||
14 | 14 | ||
15 | EXPORT_FUNCTIONS do_configure do_compile | 15 | EXPORT_FUNCTIONS do_configure do_compile |