Files
poky/meta/classes/setuptools_build_meta.bbclass
Ross Burton f2a0c52f65 python_pep517: move PEP517_SOURCE_PATH to python_pep517
Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH
variable can be defined in there instead of the classes that use it.

(From OE-Core rev: 69944121f49f613568bf0c62ae6b3b47af195dbe)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-13 12:23:48 +00:00

17 lines
451 B
Plaintext

inherit setuptools3-base python_pep517
DEPENDS += "python3-setuptools-native python3-wheel-native"
setuptools_build_meta_do_configure () {
:
}
# TODO: ideally this uses pypa/build
setuptools_build_meta_do_compile () {
cd ${PEP517_SOURCE_PATH}
nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('${PEP517_WHEEL_PATH}')"
}
do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
EXPORT_FUNCTIONS do_configure do_compile