Skip to content

Commit

Permalink
fix multibuilds for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmaslanka committed Aug 10, 2024
1 parent 92d0142 commit 982ddf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion snakehouse/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion snakehouse/faster_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 982ddf2

Please sign in to comment.