Skip to content

Commit 0772148

Browse files
authored
Disable -v in install_executorch.py by default (pytorch#21914)
It produces extremley long logs (~18k lines) without a clear benefit in most cases. It can be re-enabled in select jobs by passing --verbose. cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani Signed-off-by: Erik Lundell <erik.lundell@arm.com>
1 parent 1b2838b commit 0772148

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎install_executorch.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ def _parse_args() -> argparse.Namespace:
191191
help="Only installs necessary dependencies for core executorch and skips "
192192
" packages necessary for running example scripts.",
193193
)
194+
parser.add_argument(
195+
"--verbose",
196+
"-v",
197+
action="store_true",
198+
help="Pass -v to pip when installing the ExecuTorch package.",
199+
)
194200
allowed_optional_dependencies = ["ethos_u", "vgf", "openvino"]
195201
parser.add_argument(
196202
"--optional-dependency",
@@ -241,9 +247,10 @@ def main(args):
241247
+ [
242248
package_spec,
243249
"--no-build-isolation",
244-
"-v",
245250
]
246251
)
252+
if args.verbose:
253+
cmd.append("-v")
247254
subprocess.run(cmd, check=True)
248255

249256
# Step 3: Extra (optional) packages that is only useful for running examples.

0 commit comments

Comments
 (0)