From d917ae1da891815b72b8cd22894ab93ab00642e2 Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 9 Aug 2022 15:00:30 +0200 Subject: [PATCH] chore: use max 4 cores for parallel execution --- tools/python.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python.mk b/tools/python.mk index c07b55e4a..fbe1b286e 100644 --- a/tools/python.mk +++ b/tools/python.mk @@ -2,7 +2,7 @@ .DEFAULT_GOAL = install SHELL = bash -CPU_CORES = $(shell nproc) +CPU_CORES = $$(( $(shell nproc) > 4 ? 4 : $(shell nproc) )) # PIP_INSTALL = --editable . # PYLINT_ARG =