Skip to content

Commit

Permalink
Remove openmp flags for mac compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mckib2 committed Dec 8, 2020
1 parent 33a552e commit 01dc2dc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
from setuptools import setup, Extension, find_packages
from setuptools.command.build_ext import build_ext as _build_ext

copts = {
'unix': ['-O3', '-fopenmp'],
'mingw32': ['-O3'],
}
lopts = {
'unix': ['-fopenmp'],
'mingw32': []
}

class build_ext(_build_ext):
'''Subclass build_ext to bootstrap numpy and deal with compile.'''
Expand All @@ -26,13 +18,6 @@ def finalize_options(self):

def build_extensions(self):
'''We want different opts and potentially preprocess.'''
c = self.compiler.compiler_type
if c in copts:
for e in self.extensions:
e.extra_compile_args = copts[c]
if c in lopts:
for e in self.extensions:
e.extra_link_args = lopts[c]
_build_ext.build_extensions(self)


Expand Down

0 comments on commit 01dc2dc

Please sign in to comment.