Only copy if file exists (not if installed from sdist etc.)

This commit is contained in:
Ines Montani 2020-02-25 16:01:58 +01:00
parent 436b26fe0f
commit 912572e04a
1 changed files with 3 additions and 2 deletions

View File

@ -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),