diff --git a/setup.cfg b/setup.cfg index d73749bff4e2179b8b62926f9b6039a4f9db7a97..00677200a89039df3be2c41b665bcf8d45663880 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ [metadata] name = snakehouse keywords = cython, extension, multiple, pyx -version = 1.7a1 +version = 1.7 long-description = file: README.md long-description-content-type = text/markdown; charset=UTF-8 license_files = LICENSE diff --git a/snakehouse/__init__.py b/snakehouse/__init__.py index 852f3c3377491848f45fc2a11b09a3975592ac3f..70f9ed1c2e9b9e3bf048fe7bce9f43b8e575e788 100644 --- a/snakehouse/__init__.py +++ b/snakehouse/__init__.py @@ -7,4 +7,4 @@ from .requirements import read_requirements_txt, find_c, find_pyx_and_c, find_py try: __version__ = pkg_resources.require('snakehouse')[0].version except pkg_resources.DistributionNotFound: - __version__ = '1.7a1' + __version__ = '1.7' diff --git a/snakehouse/faster_builds.py b/snakehouse/faster_builds.py index 777a736ad73ce02d4125ca242322d9e4d94273c6..8c1d90eb8fc48a05b8b37ab43d29f06bb77b7a8f 100644 --- a/snakehouse/faster_builds.py +++ b/snakehouse/faster_builds.py @@ -1,5 +1,6 @@ import multiprocessing import typing as tp +import sys __all__ = ['monkey_patch_parallel_compilation'] @@ -13,6 +14,10 @@ def monkey_patch_parallel_compilation(cores: tp.Optional[int] = None) -> None: :param cores: amount of cores. Leave at default (None) for autodetection. """ + if sys.platform == 'win32': + print('Sorry, parallel builds are not supported on Windows') + return + if cores is None: cores = multiprocessing.cpu_count()