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,6 +133,7 @@ def setup_package():
exec(f.read(), about)
for copy_file, target_dir in COPY_FILES.items():
if copy_file.exists():
shutil.copy(str(copy_file), str(target_dir))
print(f"Copied {copy_file} -> {target_dir}")