From e73fe551a1f9b2c76dd6f2179650cccca4895991 Mon Sep 17 00:00:00 2001 From: ifilot Date: Thu, 7 Dec 2023 06:50:31 +0100 Subject: [PATCH] Changing compilation rules --- setup.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index fe5aba4..866c41b 100644 --- a/setup.py +++ b/setup.py @@ -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(