dist: don't search same directory for dependencies more than once

This commit is contained in:
rdb 2020-09-14 11:58:57 +02:00
parent 7711757d3d
commit 8e39072f6f

View File

@ -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. """