From 163fc1f9203dcc63921d2f41e4d322ffebf46cc3 Mon Sep 17 00:00:00 2001 From: petermeisrimelmodelon Date: Wed, 8 Apr 2026 09:58:54 +0000 Subject: [PATCH] chore: enable parallel c compilation for cython build --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6cbe0963..c5c2ef76 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: build build-dev-image test shell DOCKER_IMAGE := pyfmi-dev IN_DOCKER_IMG := $(shell test -f /.dockerenv && echo 1 || echo 0) +SETUPTOOLS_JFLAG=-j$(shell nproc) define _run @if [ $(IN_DOCKER_IMG) -eq 1 ]; then \ @@ -22,7 +23,7 @@ build-dev-image: $(call _run, pip install pytest) build: .venv - $(call _run, python setup.py install --fmil-home=/usr) + $(call _run, python setup.py build_ext ${SETUPTOOLS_JFLAG} install --fmil-home=/usr) test: build $(call _run, pytest)