From 4d36d97e45fdc7f48a0580c0e3aa4bbf643da42e Mon Sep 17 00:00:00 2001 From: ifilot Date: Thu, 7 Dec 2023 07:03:04 +0100 Subject: [PATCH] Tuning --- pyqint/integrals.h | 4 ---- setup.py | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pyqint/integrals.h b/pyqint/integrals.h index d29be64..7540d51 100644 --- a/pyqint/integrals.h +++ b/pyqint/integrals.h @@ -27,10 +27,6 @@ #include #include -#if defined(__GNUG__) || defined(_MSC_VER) -#include -#endif - #include "gamma.h" #include "cgf.h" #include "factorials.h" diff --git a/setup.py b/setup.py index 53100f1..e82312f 100644 --- a/setup.py +++ b/setup.py @@ -75,12 +75,15 @@ def find_windows_versions(): os.environ['PATH'] = ";".join(newpaths) # specify compilation instructions for other platforms -if os.name == 'posix': +if os.name == 'posix' and sys.platform != 'darwin': extra_compile_args = ["-Wno-date-time", "-fopenmp", "-fPIC"] extra_link_args = ["-fopenmp"] -else: +elif 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(