Skip to content

Commit

Permalink
Changing compilation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ifilot committed Dec 7, 2023
1 parent 73f912d commit e73fe55
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ def find_windows_versions():
os.environ['PATH'] = ";".join(newpaths)

# specify compilation instructions for other platforms
if os.name == 'posix' and sys.platform != 'darwin':
os.environ['CFLAGS'] = '-I/usr/include/eigen3'
if os.name == 'posix':
extra_compile_args = ["-Wno-date-time", "-fopenmp", "-fPIC"]
extra_link_args = ["-fopenmp"]
elif os.name == 'nt':
else os.name == 'nt':
extra_compile_args = ["/openmp"]
extra_link_args = []
elif sys.platform == 'darwin':
extra_compile_args = ["-Wno-date-time", "-fPIC", "-std=c++14"]
extra_link_args = []

ext_modules = [
Extension(
Expand Down

0 comments on commit e73fe55

Please sign in to comment.