def get_transitive_build_target_deps(self):
    '\n        Recursively fetch the build targets that this custom target depends on,\n        whether through `command:`, `depends:`, or `sources:` The recursion is\n        only performed on custom targets.\n        This is useful for setting PATH on Windows for finding required DLLs.\n        F.ex, if you have a python script that loads a C module that links to\n        other DLLs in your project.\n        '
    bdeps = set()
    deps = self.get_target_dependencies()
    for d in deps:
        if isinstance(d, BuildTarget):
            bdeps.add(d)
        elif isinstance(d, CustomTarget):
            bdeps.update(d.get_transitive_build_target_deps())
    return bdeps
Recursively fetch the build targets that this custom target depends on,
whether through `command:`, `depends:`, or `sources:` The recursion is
only performed on custom targets.
This is useful for setting PATH on Windows for finding required DLLs.
F.ex, if you have a python script that loads a C module that links to
other DLLs in your project.
def get_transitive_build_target_deps(self):
    '\n        Recursively fetch the build targets that this custom target depends on,\n        whether through `command:`, `depends:`, or `sources:` The recursion is\n        only performed on custom targets.\n        This is useful for setting PATH on Windows for finding required DLLs.\n        F.ex, if you have a python script that loads a C module that links to\n        other DLLs in your project.\n        '
    bdeps = set()
    deps = self.get_target_dependencies()
    for d in deps:
        if isinstance(d, BuildTarget):
            bdeps.add(d)
        elif isinstance(d, CustomTarget):
            bdeps.update(d.get_transitive_build_target_deps())
    return bdeps