Lines Matching +full:- +full:pip +full:-
3 # SPDX-License-Identifier: Apache-2.0
20 def in_venv() -> bool:
46 see 'west packages <manager> --help' for details.
52 "-m",
53 "--module",
73 "pip",
74 help="manage pip packages",
78 Manage pip packages:
80 Run 'west packages pip' to print all requirement files needed by
89 "--install",
91 help="Install pip requirements instead of listing them. "
92 "A single 'pip install' command is built and executed. "
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 "--"'
118 if args.manager == "pip":
137 # Get the optional pip section from the package managers
138 pip = module.meta.get("package-managers", {}).get("pip")
139 if pip is None:
145 requirements += [Path(module.project) / r for r in pip.get("requirement-files", [])]
149 self.die("Running pip install outside of a virtual environment")
153 [sys.executable, "-m", "pip", "install"]
154 + list(chain.from_iterable([("-r", r) for r in requirements]))
162 self.die(f'west packages pip does not support unknown arguments: "{manager_args}"')
164 self.inf("\n".join([f"-r {r}" for r in requirements]))