Skip to content

Commit

Permalink
github action uses legacy dir for homebrew, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Dec 6, 2023
1 parent b4be5b7 commit 92c4d56
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@
libcaer_include = "C:/msys64/mingw64/include"
libcaer_lib = "C:/msys64/mingw64/lib"

include_dirs = [libcaer_include, python_paths["include"], numpy_include]
library_dirs = [libcaer_lib, python_paths["stdlib"]]
if platform == "darwin":
include_dirs += ["/usr/local/include"]
library_dirs += ["/usr/local/lib"]

libcaer_wrap = Extension(
name="pyaer._libcaer_wrap",
sources=["./pyaer/pyflags.i"],
include_dirs=[libcaer_include, python_paths["include"], numpy_include],
library_dirs=[libcaer_lib, python_paths["stdlib"]],
include_dirs=include_dirs,
library_dirs=library_dirs,
swig_opts=["-I" + libcaer_include],
# extra_compile_args=["-std=c11"],
extra_link_args=["-lcaer"],
Expand Down

0 comments on commit 92c4d56

Please sign in to comment.