mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
try using system-wide headers
This commit is contained in:
parent
92fabd0114
commit
63d74ae8f3
19
setup.py
19
setup.py
|
@ -197,8 +197,7 @@ def setup_package():
|
||||||
write_version_py()
|
write_version_py()
|
||||||
|
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
get_python_inc(plat_specific=True),
|
get_python_inc(plat_specific=True)]
|
||||||
os.path.join(src_path, 'include')]
|
|
||||||
|
|
||||||
ext_modules = []
|
ext_modules = []
|
||||||
for mod_name in MOD_NAMES:
|
for mod_name in MOD_NAMES:
|
||||||
|
@ -236,15 +235,15 @@ def setup_package():
|
||||||
shutil.rmtree(include_dir)
|
shutil.rmtree(include_dir)
|
||||||
os.mkdir(include_dir)
|
os.mkdir(include_dir)
|
||||||
|
|
||||||
import numpy
|
# import numpy
|
||||||
shutil.copytree(
|
# shutil.copytree(
|
||||||
os.path.join(numpy.get_include(), 'numpy'),
|
# os.path.join(numpy.get_include(), 'numpy'),
|
||||||
os.path.join(include_dir, 'numpy'))
|
# os.path.join(include_dir, 'numpy'))
|
||||||
|
|
||||||
import murmurhash
|
# import murmurhash
|
||||||
shutil.copytree(
|
# shutil.copytree(
|
||||||
os.path.join(os.path.dirname(murmurhash.__file__), 'headers', 'murmurhash'),
|
# os.path.join(os.path.dirname(murmurhash.__file__), 'headers', 'murmurhash'),
|
||||||
os.path.join(include_dir, 'murmurhash'))
|
# os.path.join(include_dir, 'murmurhash'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
setup(**metadata)
|
setup(**metadata)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user