Lines Matching +full:- +full:- +full:modules
3 # SPDX-License-Identifier: Apache-2.0
20 def in_venv() -> bool:
29 "List and Install packages for Zephyr and modules",
46 see 'west packages <manager> --help' for details.
52 "-m",
53 "--module",
56 dest="modules",
62 "and all modules.",
81 Zephyr and modules.
89 "--install",
93 "Additional pip arguments can be passed after a -- separator "
94 "from the original 'west packages pip --install' command. For example pass "
95 "'--dry-run' to pip not to actually install anything, but print what would be.",
101 if len(unknown) > 0 and unknown[0] != "--":
104 'arguments for the manager should be passed after "--"'
107 # Store the zephyr modules for easier access
110 if args.modules:
114 for m in args.modules:
127 if not args.modules or "zephyr" in args.modules:
132 if args.modules and module_name not in args.modules:
138 pip = module.meta.get("package-managers", {}).get("pip")
145 requirements += [Path(module.project) / r for r in pip.get("requirement-files", [])]
153 [sys.executable, "-m", "pip", "install"]
154 + list(chain.from_iterable([("-r", r) for r in requirements]))
164 self.inf("\n".join([f"-r {r}" for r in requirements]))