mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-25 05:21:31 +00:00
python3-uefi-firmware: Switch to python_setuptools_build_meta
uefi-firmware-parser's pyproject.toml declares setuptools.build_meta as its
build backend, so setuptools3 is the wrong class and do_check_backend warns:
QA Issue: inherits setuptools3 but has pyproject.toml with
setuptools.build_meta, use the correct class [pep517-backend]
Unlike setup.py, pyproject-build honours the declared build requirements, so
the setuptools_scm dependency has to be provided explicitly, otherwise
do_compile fails with:
ERROR Unmet dependencies ...
setuptools-scm>=8.0
wanted: >=8.0
found: not installed
setup.py passes use_scm_version to setup(), which was silently discarded
before ("Unknown distribution option: 'use_scm_version'"), so the package used
to ship its metadata as uefi_firmware-0.0.0.dist-info. Pin the version to
${PV} so the directory is now correctly named uefi_firmware-1.16.dist-info.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -11,7 +11,13 @@ SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch
|
||||
|
||||
SRCREV = "e202e576cefd1fefb3f510237bbd0aea8aedca07"
|
||||
|
||||
inherit setuptools3
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
|
||||
inherit python_setuptools_build_meta
|
||||
|
||||
# The tarball is built from a git tag, so let setuptools_scm use ${PV}
|
||||
# instead of deriving a version from the checkout.
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-ctypes \
|
||||
|
||||
Reference in New Issue
Block a user