Files
poky/meta/classes/setuptools_build_meta.bbclass
Ross Burton 37527ea5bd 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>
2022-03-09 11:46:28 +00:00

16 lines
434 B
Plaintext

inherit pip_install_wheel setuptools3-base
DEPENDS += "python3-setuptools-native python3-wheel-native"
setuptools_build_meta_do_configure () {
:
}
# TODO: ideally this uses pypa/build
setuptools_build_meta_do_compile () {
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