diff --git a/snakehouse/build.py b/snakehouse/build.py index ade35caf31f1421f028174f266cc34fc204261e3..5d7186831804e281f1adb202e9ed2619b148b5ea 100644 --- a/snakehouse/build.py +++ b/snakehouse/build.py @@ -16,7 +16,7 @@ def build(extensions: tp.List[MultiBuildType], *args, nthreads=None, **kwargs): nthreads = multiprocessing.cpu_count() if sys.platform == 'win32': print('Sorry, multiprocessing is not yet supported on Windows') - nthreads = 1 + nthreads = 0 kwargs['nthreads'] = nthreads returns = [] multi_builds = [] diff --git a/snakehouse/faster_builds.py b/snakehouse/faster_builds.py index 00e7ba62c77fca27da0c1156d81f8e258d341aa8..8c1d90eb8fc48a05b8b37ab43d29f06bb77b7a8f 100644 --- a/snakehouse/faster_builds.py +++ b/snakehouse/faster_builds.py @@ -14,7 +14,6 @@ def monkey_patch_parallel_compilation(cores: tp.Optional[int] = None) -> None: :param cores: amount of cores. Leave at default (None) for autodetection. """ - multiprocessing.freeze_support() if sys.platform == 'win32': print('Sorry, parallel builds are not supported on Windows') return