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

fix multibuilds on windows

parent 96f5d364
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[metadata] [metadata]
name = snakehouse name = snakehouse
keywords = cython, extension, multiple, pyx keywords = cython, extension, multiple, pyx
version = 1.7a1 version = 1.7
long-description = file: README.md long-description = file: README.md
long-description-content-type = text/markdown; charset=UTF-8 long-description-content-type = text/markdown; charset=UTF-8
license_files = LICENSE license_files = LICENSE
......
...@@ -7,4 +7,4 @@ from .requirements import read_requirements_txt, find_c, find_pyx_and_c, find_py ...@@ -7,4 +7,4 @@ from .requirements import read_requirements_txt, find_c, find_pyx_and_c, find_py
try: try:
__version__ = pkg_resources.require('snakehouse')[0].version __version__ = pkg_resources.require('snakehouse')[0].version
except pkg_resources.DistributionNotFound: except pkg_resources.DistributionNotFound:
__version__ = '1.7a1' __version__ = '1.7'
import multiprocessing import multiprocessing
import typing as tp import typing as tp
import sys
__all__ = ['monkey_patch_parallel_compilation'] __all__ = ['monkey_patch_parallel_compilation']
...@@ -13,6 +14,10 @@ def monkey_patch_parallel_compilation(cores: tp.Optional[int] = None) -> None: ...@@ -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. :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: if cores is None:
cores = multiprocessing.cpu_count() cores = multiprocessing.cpu_count()
......
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