Skip to content

Commit

Permalink
Merge pull request #441 from pgunn/dev_test_cpp_flag_tweak
Browse files Browse the repository at this point in the history
Caiman: Tweak C++ build flags for better OSX compatibility
  • Loading branch information
pgunn authored Jan 30, 2019
2 parents 1fda25a + 05795a2 commit f8d40a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from setuptools import setup, find_packages
import os
from os import path
import sys
import numpy as np
from Cython.Build import cythonize
from setuptools.extension import Extension
Expand Down Expand Up @@ -44,10 +45,16 @@

# 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++']
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++")]
language="c++",
extra_compile_args = extra_compiler_args)]

setup(
name='caiman',
Expand Down

0 comments on commit f8d40a6

Please sign in to comment.