From ef19db146af4ce9e11fdcb4335342c3d67d77bc5 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Mon, 28 Oct 2024 16:25:30 +0100 Subject: [PATCH] [Python] Remove --parallel from cmake --build command in setup.py Causes problems due to unlimited parallel compilation with make. Better let this be controlled by setting CMAKE_BUILD_PARALLEL_LEVEL environment variable, which only works if --parallel option is not passed in the command line. https://cmake.org/cmake/help/latest/envvar/CMAKE_BUILD_PARALLEL_LEVEL.html Fixes: #2356 --- bindings/python/setup.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 737f2d6bd53..1486df4ffd5 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -118,7 +118,7 @@ def build_extensions(self): os.makedirs(self.build_temp) check_call([cmake, ext.src, '-B', self.build_temp] + cmake_args) - check_call([cmake, '--build', self.build_temp, '--parallel']) + check_call([cmake, '--build', self.build_temp]) version = get_version() diff --git a/setup.py b/setup.py index c676e0854fb..fd5782679da 100644 --- a/setup.py +++ b/setup.py @@ -87,7 +87,7 @@ def build_extensions(self): os.makedirs(self.build_temp) check_call([cmake, ext.src, '-B', self.build_temp] + cmake_args) - check_call([cmake, '--build', self.build_temp, '--parallel']) + check_call([cmake, '--build', self.build_temp]) version = get_version()