Commit 6f7cd9e3 authored by Stefan Behnel's avatar Stefan Behnel

minor safety fix

parent d8bad022
......@@ -95,7 +95,7 @@ def cython_compile(path_pattern, options):
os.chdir(cwd)
if ext_modules and options.build:
if len(ext_modules) > 1 and options.parallel:
if len(ext_modules) > 1 and options.parallel > 1:
if pool is None:
try:
pool = multiprocessing.Pool(options.parallel)
......
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