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

should work on Windows

parent ea9bb451
No related branches found
No related tags found
No related merge requests found
# v1.7
* should work on Windows
# v1.6
* certified for Python 3.11 and 3.12
......
......@@ -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.6'
__version__ = '1.7'
......@@ -14,6 +14,9 @@ logger = logging.getLogger(__name__)
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 = []
......
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