# HG changeset patch # User Emmanuel Gil Peyrot # Date 1436476710 -3600 # Node ID 5270c34b4c009ff57df5a54fa215fd0ed0b35057 # Parent 38928d4d6709282068d5dead82600ce52d08c3c9 Use the number of cores available for parallel compilation, instead of an hardcoded 4 threads. diff --git a/setup.py b/setup.py --- 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.