mirror of https://github.com/explosion/spaCy.git
* Add -Wno-strict-prototypes, to suppress warning
This commit is contained in:
parent
47a4371fea
commit
6102360111
3
setup.py
3
setup.py
|
@ -28,7 +28,6 @@ def my_customize_compiler(compiler):
|
||||||
if platform.python_implementation() == 'PyPy':
|
if platform.python_implementation() == 'PyPy':
|
||||||
sysconfig.customize_compiler = my_customize_compiler
|
sysconfig.customize_compiler = my_customize_compiler
|
||||||
|
|
||||||
|
|
||||||
#def install_headers():
|
#def install_headers():
|
||||||
# dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
|
# dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
|
||||||
# if not path.exists(dest_dir):
|
# if not path.exists(dest_dir):
|
||||||
|
@ -117,7 +116,7 @@ def run_setup(exts):
|
||||||
def main(modules, is_pypy):
|
def main(modules, is_pypy):
|
||||||
language = "cpp"
|
language = "cpp"
|
||||||
includes = ['.', path.join(sys.prefix, 'include')]
|
includes = ['.', path.join(sys.prefix, 'include')]
|
||||||
compile_args = ['-O3']
|
compile_args = ['-O3', '-Wno-strict-prototypes']
|
||||||
link_args = []
|
link_args = []
|
||||||
if sys.prefix == 'darwin':
|
if sys.prefix == 'darwin':
|
||||||
compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
|
compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
|
||||||
|
|
Loading…
Reference in New Issue