From a9e041f95e8ef6fc14d607cf1c47dc521d6148c8 Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Thu, 29 Jul 2010 14:59:48 +0000
Subject: [PATCH] skip nonexisting files when copying deps

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2613 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 deployment/macos/deps.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/deployment/macos/deps.py b/deployment/macos/deps.py
index f335dcfa4..460071d1b 100644
--- a/deployment/macos/deps.py
+++ b/deployment/macos/deps.py
@@ -151,6 +151,8 @@ def copy_deps(dependencies, outdir, use_rpath):
   for dep in dependencies:
     if dep.endswith('.dylib'):
       dst_name=os.path.join(outdir, 'lib', os.path.basename(dep))
+      if not os.path.exists(dep):
+        continue
       shutil.copy(dep, dst_name)
       if use_rpath:
         change_id(os.path.basename(dep), dst_name, use_rpath)
-- 
GitLab