changeset 634:5270c34b4c00

Use the number of cores available for parallel compilation, instead of an hardcoded 4 threads.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 09 Jul 2015 22:18:30 +0100
parents 38928d4d6709
children 80687f258001
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sat May 23 11:54:20 2015 +0200
+++ b/setup.py	Thu Jul 09 22:18:30 2015 +0100
@@ -21,7 +21,7 @@
 
 debug = False  # True to generate HTML annotations and display infered types.
 anmviewer = False  # It’s currently broken anyway.
-nthreads = 4  # How many processes to use for Cython compilation.
+nthreads = os.cpu_count()  # How many processes to use for Cython compilation.
 compile_everything = False  # Maybe improve running time a bit by wasting a lot
                             # of CPU time during compilation, and disk space.