Skip to content

Commit

Permalink
Fix compile on Mac OS 10.14 with Python 3.6. See pandas-dev/pandas#23424
Browse files Browse the repository at this point in the history
  • Loading branch information
histed authored and tvajtay committed Jun 11, 2019
1 parent 1c7f415 commit 7d825dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@
# compile with: python setup.py build_ext -i
# clean up with: python setup.py clean --all
if sys.platform == 'darwin':
extra_compiler_args = ['-stdlib=libc++']
# see https://github.com/pandas-dev/pandas/issues/23424
extra_compiler_args = ['-stdlib=libc++'] # not needed #, '-mmacosx-version-min=10.9']
else:
extra_compiler_args = []

ext_modules = [Extension("caiman.source_extraction.cnmf.oasis",
sources=["caiman/source_extraction/cnmf/oasis.pyx"],
include_dirs=[np.get_include()],
language="c++",
extra_compile_args = extra_compiler_args)]
extra_compile_args = extra_compiler_args,
extra_link_args = extra_compiler_args,
)]

setup(
name='caiman',
Expand Down

0 comments on commit 7d825dc

Please sign in to comment.