From 4670c9c8b9fd33938559dcba287740d1d4f32811 Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Fri, 4 Oct 2024 00:36:01 -0400 Subject: [PATCH] seperate mac --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cbec008b..bcaa80f0 100755 --- a/setup.py +++ b/setup.py @@ -87,7 +87,10 @@ def get_gsl_config_win(): gcfg = get_gsl_config() include_dirs = [MYDIR] + gcfg["include_dirs"] library_dirs = [] -libraries = [] +if sys.platform == "darwin": + libraries = [] +else: + libraries = ["gsl"] extra_objects = [] extra_compile_args = [] extra_link_args = [] @@ -101,7 +104,6 @@ def get_gsl_config_win(): elif compiler_type == "msvc": define_macros += [("_USE_MATH_DEFINES", None)] extra_compile_args = ["/EHs"] - libraries += ["gsl"] library_dirs += gcfg["library_dirs"] # add optimization flags for other compilers if needed