mirror of https://github.com/explosion/spaCy.git
Only copy if file exists (not if installed from sdist etc.)
This commit is contained in:
parent
436b26fe0f
commit
912572e04a
5
setup.py
5
setup.py
|
@ -133,8 +133,9 @@ def setup_package():
|
||||||
exec(f.read(), about)
|
exec(f.read(), about)
|
||||||
|
|
||||||
for copy_file, target_dir in COPY_FILES.items():
|
for copy_file, target_dir in COPY_FILES.items():
|
||||||
shutil.copy(str(copy_file), str(target_dir))
|
if copy_file.exists():
|
||||||
print(f"Copied {copy_file} -> {target_dir}")
|
shutil.copy(str(copy_file), str(target_dir))
|
||||||
|
print(f"Copied {copy_file} -> {target_dir}")
|
||||||
|
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
get_python_inc(plat_specific=True),
|
get_python_inc(plat_specific=True),
|
||||||
|
|
Loading…
Reference in New Issue