42 if geneus.geneus_main.pkg_map
is None:
46 from catkin_pkg
import packages, workspaces
48 for ws
in workspaces.get_spaces():
49 pkgs = packages.find_packages(ws)
50 for pkg
in pkgs.values():
51 if not pkg_map.has_key(pkg.name):
52 pkg_map[pkg.name] = pkg
58 depends = package_depends(package)
59 depends = [
'"{0}"'.format(d)
for d
in depends]
61 r'set({pkg}_ALL_RUN_DEPENDS {depends})'.format(
62 pkg=package, depends=
' '.join(depends))
68 parser = argparse.ArgumentParser(
69 description=
"Extract all dependencies to output file.")
70 parser.add_argument(
'package')
71 parser.add_argument(
'outfile')
72 args = parser.parse_args(sys.argv[1:])
75 with open(args.outfile,
'w')
as ofile:
76 ofile.write(
'\n'.join(lines))
79 if __name__ ==
'__main__':