Commit b81b6ec07261d402be838441420d62772562a553
1 parent
ef90452d
Exists in
master
and in
56 other branches
Added support in setup.py to compile in windows with openmp
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
setup.py
@@ -14,6 +14,16 @@ if sys.platform == 'linux2': | @@ -14,6 +14,16 @@ if sys.platform == 'linux2': | ||
14 | extra_compile_args=['-fopenmp'], | 14 | extra_compile_args=['-fopenmp'], |
15 | extra_link_args=['-fopenmp'],)] | 15 | extra_link_args=['-fopenmp'],)] |
16 | ) | 16 | ) |
17 | + | ||
18 | +elif sys.platform == 'win32': | ||
19 | + setup( | ||
20 | + cmdclass = {'build_ext': build_ext}, | ||
21 | + ext_modules = [ Extension("invesalius.data.mips", ["invesalius/data/mips.pyx"], | ||
22 | + include_dirs = [numpy.get_include()], | ||
23 | + extra_compile_args=['/openmp'], | ||
24 | + )] | ||
25 | + ) | ||
26 | + | ||
17 | else: | 27 | else: |
18 | setup( | 28 | setup( |
19 | cmdclass = {'build_ext': build_ext}, | 29 | cmdclass = {'build_ext': build_ext}, |