Skip to content

Commit

Permalink
Fix OSX Build issue (#97)
Browse files Browse the repository at this point in the history
* remove platform, add -x c++ and -std=c++11 compile args

* specify pytest version
  • Loading branch information
schmty authored and wbolster committed Apr 16, 2019
1 parent 1a04cfb commit db51a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest
pytest>=3.6
pytest-cov
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from os.path import join, dirname
from setuptools import setup
from setuptools.extension import Extension
import platform

CURRENT_DIR = dirname(__file__)

Expand All @@ -14,9 +13,7 @@ def get_file_contents(filename):
return fp.read()


extra_compile_args = ['-Wall', '-g']
if platform.system() == 'Darwin':
extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++']
extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11']

ext_modules = [
Extension(
Expand Down

0 comments on commit db51a6f

Please sign in to comment.