Skip to content

Commit

Permalink
should work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmaslanka committed Aug 10, 2024
1 parent ea9bb45 commit f756c04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.7

* should work on Windows

# v1.6

* certified for Python 3.11 and 3.12
Expand Down
2 changes: 1 addition & 1 deletion snakehouse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
try:
__version__ = pkg_resources.require('snakehouse')[0].version
except pkg_resources.DistributionNotFound:
__version__ = '1.6'
__version__ = '1.7'
3 changes: 3 additions & 0 deletions snakehouse/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
def build(extensions: tp.List[MultiBuildType], *args, nthreads=None, **kwargs):
if nthreads is None:
nthreads = multiprocessing.cpu_count()
if sys.platform == 'win32':
print('Sorry, multiprocessing is not yet supported on Windows')
nthreads = 1
kwargs['nthreads'] = nthreads
returns = []
multi_builds = []
Expand Down

0 comments on commit f756c04

Please sign in to comment.