mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
Set GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS to limit spawned compiler
processes. Without this it uses all available CPUs (via
multiprocessing.cpu_count()) and can exhaust build host since there are
lot of files to compile (e.g. with 128 cores it manages to spawn 128 gcc
processes)
Note that this is a general problem for all setuptools based builds with
build_ext compilation which can either compile with 1 thread or
cpu_count threads. grpcio hot-patches setuptools and allows to set
specific build concurrency value.
(From master rev: fe582374d3)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
24 lines
706 B
BlitzBasic
24 lines
706 B
BlitzBasic
DESCRIPTION = "Google gRPC tools"
|
|
HOMEPAGE = "http://www.grpc.io/"
|
|
SECTION = "devel/python"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"
|
|
|
|
inherit pypi setuptools3
|
|
|
|
DEPENDS += "python3-grpcio"
|
|
|
|
SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \
|
|
file://0001-protobuf-Disable-musttail-attribute-on-mips.patch \
|
|
"
|
|
SRC_URI[sha256sum] = "5fd5e1582b678e6b941ee5f5809340be5e0724691df5299aae8226640f94e18f"
|
|
|
|
RDEPENDS:${PN} = "python3-grpcio"
|
|
|
|
do_compile:prepend() {
|
|
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="${@oe.utils.parallel_make(d, False)}"
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|