Skip to content

Commit

Permalink
change swig ops
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Dec 6, 2023
1 parent 92c4d56 commit cc7a1ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@

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

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

0 comments on commit cc7a1ea

Please sign in to comment.