Commit ebd4d2d9 authored by Stefan Behnel's avatar Stefan Behnel

Speed up parallel builds of Cython a little by starting with the largest modules.

parent e50ee3d8
......@@ -159,6 +159,9 @@ def compile_cython_modules(profile=False, coverage=False, compile_more=False, cy
# XXX hack around setuptools quirk for '*.pyx' sources
extensions[-1].sources[0] = pyx_source_file
# optimise build parallelism by starting with the largest modules
extensions.sort(key=lambda ext: os.path.getsize(ext.sources[0]), reverse=True)
from Cython.Distutils.build_ext import build_ext
from Cython.Compiler.Options import get_directive_defaults
get_directive_defaults().update(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment