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
+++ b/setup.py
@@ -21,7 +21,7 @@ GL_LIBRARIES = ['epoxy']
 
 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.