Skip to content

Commit f34824f

Browse files
committed
Extra fix for Mac OS X compilation (explicitly use libc++)
1 parent ad0a42e commit f34824f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
from distutils.core import setup, Extension
33
from Cython.Distutils import build_ext
4+
import platform
45
import glob
56
import os
67

@@ -14,19 +15,24 @@
1415
includedirs.insert(0,os.environ['VIRTUAL_ENV'] + '/include')
1516
libdirs.insert(0,os.environ['VIRTUAL_ENV'] + '/lib')
1617

18+
if platform.system() == "Darwin":
19+
extra_options = ["-stdlib=libc++"]
20+
else:
21+
extra_options = []
22+
1723
extensions = [ Extension("frog",
1824
[ "libfolia_classes.pxd", "frog_classes.pxd", "frog_wrapper.pyx"],
1925
language='c++',
2026
include_dirs=includedirs,
2127
library_dirs=libdirs,
2228
libraries=['frog','ucto','folia'],
23-
extra_compile_args=['--std=c++0x'],
29+
extra_compile_args=['--std=c++0x'] + extra_options,
2430
pyrex_gdb=True
2531
) ]
2632

2733
setup(
2834
name = 'python-frog',
29-
version = '0.3.4',
35+
version = '0.3.5',
3036
author_email = "proycon@anaproy.nl",
3137
description = ("Python binding to FROG, an NLP suite for Dutch doing part-of-speech tagging, lemmatisation, morphological analysis, named-entity recognition, shallow parsing, and dependency parsing."),
3238
requires = ['frog (>=0.13.6)'],

0 commit comments

Comments
 (0)