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 a096fe1 commit 261f218Copy full SHA for 261f218
cue.py
@@ -15,6 +15,12 @@
15
import sysconfig
16
import shutil
17
18
+try:
19
+ from os import cpu_count
20
+except ImportError:
21
+ def cpu_count():
22
+ pass # undetermined
23
+
24
logger = logging.getLogger(__name__)
25
26
# Keep track of all files we write/append for later logging
@@ -151,7 +157,7 @@ def detect_context():
151
157
if 'TEST' in os.environ and os.environ['TEST'].lower() == 'no':
152
158
ci['test'] = False
153
159
154
- ci['parallel_make'] = 2
160
+ ci['parallel_make'] = cpu_count() or 2
155
161
if 'PARALLEL_MAKE' in os.environ:
156
162
ci['parallel_make'] = int(os.environ['PARALLEL_MAKE'])
163
0 commit comments