Message ID | 20220308143035.3569559-3-ross.burton@arm.com |
---|---|
State | Accepted, archived |
Commit | 1a3625c576afe823efc50dc0b1071e4952339f8e |
Headers | show |
Series | [1/6] flit_core: respect PIP_INSTALL_DIST_PATH | expand |
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 () { # TODO: ideally this uses pypa/build setuptools_build_meta_do_compile () { - mkdir -p ${S}/dist - nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('./dist')" + nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PIP_INSTALL_DIST_PATH}')" } +do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}" EXPORT_FUNCTIONS do_configure do_compile
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. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes/setuptools_build_meta.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)