mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-15 02:01:37 +00:00
b1777d4f51
setuptools3.bbclass and python_setuptools_build_meta.bbclass no longer
add python3-wheel-native to DEPENDS by default, following oe-core
commit e546c697b7 ("classes/setuptools3: remove wheel dependency"),
since setuptools >= 70.1.0 no longer needs the external wheel package
to build a wheel.
This recipe's pyproject.toml/setup.py still declares wheel as a build
requirement, so pyproject-build's --no-isolation dependency check now
fails:
ERROR Unmet dependencies (checked against .../recipe-sysroot-native/usr/bin/nativepython3):
wheel
wanted: any
found: not installed
Add python3-wheel-native to DEPENDS directly to satisfy it.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
33 lines
1.0 KiB
BlitzBasic
33 lines
1.0 KiB
BlitzBasic
# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
SUMMARY = "Get CPU info with pure Python 2 & 3"
|
|
HOMEPAGE = "https://github.com/workhorsy/py-cpuinfo"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2379ecb0d7a8299101b1e4c160cd1f7"
|
|
|
|
SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690"
|
|
|
|
inherit ptest-python-pytest pypi python_setuptools_build_meta
|
|
|
|
DEPENDS += "python3-wheel-native"
|
|
|
|
SRC_URI += " \
|
|
file://0001-test_cli.py-disable.patch \
|
|
"
|
|
|
|
do_install:append() {
|
|
# Make sure we use /usr/bin/env python3
|
|
for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
|
|
sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
|
|
done
|
|
}
|
|
|
|
RDEPENDS:${PN}-ptest += "\
|
|
python3-compile \
|
|
"
|
|
|
|
RDEPENDS:${PN} += "python3-core python3-ctypes python3-datetime python3-json python3-io python3-mmap python3-multiprocessing python3-netclient python3-pickle python3-pprint python3-shell"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|