mirror of
https://github.com/explosion/spaCy.git
synced 2024-09-21 03:19:13 +03:00
Try to fix OSX build error
This commit is contained in:
parent
61abb1ef70
commit
3f16af123e
7
setup.py
7
setup.py
|
@ -155,6 +155,7 @@ def setup_package():
|
||||||
for mod_name in MOD_NAMES:
|
for mod_name in MOD_NAMES:
|
||||||
mod_path = mod_name.replace('.', '/') + '.cpp'
|
mod_path = mod_name.replace('.', '/') + '.cpp'
|
||||||
extra_link_args = []
|
extra_link_args = []
|
||||||
|
extra_compile_args = []
|
||||||
# ???
|
# ???
|
||||||
# Imported from patch from @mikepb
|
# Imported from patch from @mikepb
|
||||||
# See Issue #267. Running blind here...
|
# See Issue #267. Running blind here...
|
||||||
|
@ -163,10 +164,14 @@ def setup_package():
|
||||||
dylib_path = '/'.join(dylib_path)
|
dylib_path = '/'.join(dylib_path)
|
||||||
dylib_path = '@loader_path/%s/spacy/platform/darwin/lib' % dylib_path
|
dylib_path = '@loader_path/%s/spacy/platform/darwin/lib' % dylib_path
|
||||||
extra_link_args.append('-Wl,-rpath,%s' % dylib_path)
|
extra_link_args.append('-Wl,-rpath,%s' % dylib_path)
|
||||||
|
# Try to fix OSX 10.7 problem. Running blind here too.
|
||||||
|
extra_compile_args.append('-std=libc++')
|
||||||
|
extra_link_args.append('-std=libc++')
|
||||||
ext_modules.append(
|
ext_modules.append(
|
||||||
Extension(mod_name, [mod_path],
|
Extension(mod_name, [mod_path],
|
||||||
language='c++', include_dirs=include_dirs,
|
language='c++', include_dirs=include_dirs,
|
||||||
extra_link_args=extra_link_args))
|
extra_link_args=extra_link_args,
|
||||||
|
extra_compile_args=extra_compile_args))
|
||||||
|
|
||||||
if not is_source_release(root):
|
if not is_source_release(root):
|
||||||
generate_cython(root, 'spacy')
|
generate_cython(root, 'spacy')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user