|
|
@@ -1080,7 +1080,10 @@ class build_apps(setuptools.Command):
|
|
|
source_dir = os.path.dirname(source_path)
|
|
|
target_dir = os.path.dirname(target_path)
|
|
|
base = os.path.basename(target_path)
|
|
|
- self.copy_dependencies(target_path, target_dir, search_path + [source_dir], base)
|
|
|
+
|
|
|
+ if source_dir not in search_path:
|
|
|
+ search_path = search_path + [source_dir]
|
|
|
+ self.copy_dependencies(target_path, target_dir, search_path, base)
|
|
|
|
|
|
def copy_dependencies(self, target_path, target_dir, search_path, referenced_by):
|
|
|
""" Copies the dependencies of target_path into target_dir. """
|