minor safety fix
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 11 Aug 2013 07:44:24 +0000 (09:44 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 11 Aug 2013 07:44:24 +0000 (09:44 +0200)
Cython/Build/Cythonize.py

index 9436502..93a6134 100644 (file)
@@ -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)