comparison setup.py @ 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 4fa0a8e7d941
comparison
equal deleted inserted replaced
633:38928d4d6709 634:5270c34b4c00
19 SDL_LIBRARIES = ['sdl2', 'SDL2_image', 'SDL2_mixer', 'SDL2_ttf'] 19 SDL_LIBRARIES = ['sdl2', 'SDL2_image', 'SDL2_mixer', 'SDL2_ttf']
20 GL_LIBRARIES = ['epoxy'] 20 GL_LIBRARIES = ['epoxy']
21 21
22 debug = False # True to generate HTML annotations and display infered types. 22 debug = False # True to generate HTML annotations and display infered types.
23 anmviewer = False # It’s currently broken anyway. 23 anmviewer = False # It’s currently broken anyway.
24 nthreads = 4 # How many processes to use for Cython compilation. 24 nthreads = os.cpu_count() # How many processes to use for Cython compilation.
25 compile_everything = False # Maybe improve running time a bit by wasting a lot 25 compile_everything = False # Maybe improve running time a bit by wasting a lot
26 # of CPU time during compilation, and disk space. 26 # of CPU time during compilation, and disk space.
27 27
28 28
29 # Hack to move us to the correct build directory. 29 # Hack to move us to the correct build directory.