Skip to content

Commit

Permalink
resolves uber#699, win build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandrmgservices committed Nov 16, 2023
1 parent c8196a2 commit aade1fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import multiprocessing as mp
import os
from setuptools import dist, setup, find_packages
from setuptools.extension import Extension

Expand Down Expand Up @@ -41,8 +42,12 @@

packages = find_packages(exclude=["tests", "tests.*"])

nthreads = mp.cpu_count()
if os.name == 'nt':
nthreads = 0

setup(
packages=packages,
ext_modules=cythonize(extensions, annotate=True, nthreads=mp.cpu_count()),
ext_modules=cythonize(extensions, annotate=True, nthreads=nthreads),
include_dirs=[np_get_include()],
)

0 comments on commit aade1fd

Please sign in to comment.