We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181fc96 commit 09bc52eCopy full SHA for 09bc52e
setup.py
@@ -160,7 +160,9 @@ def build_extension(self, ext):
160
# CMake 3.12+ only.
161
build_args += ["-j{}".format(self.parallel)]
162
else:
163
- build_args += ["-j4"]
+ # Automatically set parallel jobs based on CPU core count
164
+ cpu_count = os.cpu_count() or 1
165
+ build_args += ["-j{}".format(cpu_count)]
166
167
if not os.path.exists(self.build_temp):
168
os.makedirs(self.build_temp)
0 commit comments