mirror of
https://git.yoctoproject.org/poky
synced 2026-04-09 20:02:21 +02:00
setuptools_build_meta: clean up configure/compile
Make do_configure do nothing by default as the base configure isn't useful, and invoke the build API directly instead of writing a script. In the future, this can simply call python3-build. (From OE-Core rev: ccad9d0218ef69bdb8c708029445fcd661f1c490) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
025fa5266e
commit
bcd7e29a3b
@@ -3,16 +3,13 @@ inherit pip_install_wheel setuptools3-base
|
||||
DEPENDS += "python3-setuptools-native python3-wheel-native"
|
||||
|
||||
setuptools_build_meta_do_configure () {
|
||||
mkdir -p ${S}/dist
|
||||
cat > ${S}/build-it.py << EOF
|
||||
from setuptools import build_meta
|
||||
wheel = build_meta.build_wheel('./dist')
|
||||
print(wheel)
|
||||
EOF
|
||||
:
|
||||
}
|
||||
|
||||
# TODO: ideally this uses pypa/build
|
||||
setuptools_build_meta_do_compile () {
|
||||
nativepython3 ${S}/build-it.py
|
||||
mkdir -p ${S}/dist
|
||||
nativepython3 -c "from setuptools import build_meta; build_meta.build_wheel('./dist')"
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile
|
||||
|
||||
Reference in New Issue
Block a user