Skip to content

Commit

Permalink
seperate mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieqiong committed Oct 4, 2024
1 parent 3a4ca3f commit 4670c9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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

Expand Down

0 comments on commit 4670c9c

Please sign in to comment.