Skip to content

Commit

Permalink
pybamm-team#3646 set parallel variable for build_ext (IDAKLU)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Dec 21, 2023
1 parent a04fce6 commit 3dc8c8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import logging
import subprocess
from multiprocessing import cpu_count
from pathlib import Path
from platform import system
import wheel.bdist_wheel as orig
Expand Down Expand Up @@ -79,6 +80,9 @@ def run(self):
if not self.extensions:
return

# Build in parallel wherever possible
os.environ["CMAKE_BUILD_PARALLEL_LEVEL"] = str(cpu_count())

if system() == "Windows":
use_python_casadi = False
else:
Expand Down

0 comments on commit 3dc8c8c

Please sign in to comment.