mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
dist: don't search same directory for dependencies more than once
This commit is contained in:
parent
7711757d3d
commit
8e39072f6f
5
direct/src/dist/commands.py
vendored
5
direct/src/dist/commands.py
vendored
@ -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. """
|
||||
|
Loading…
x
Reference in New Issue
Block a user