Skip to content
Snippets Groups Projects
Unverified Commit 982ddf2e authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix multibuilds for windows

parent 92d01422
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment