Restore --only-python arg to only install Python deps (#7464)
This commit is contained in:
@ -26,6 +26,9 @@ def main():
|
||||
help="Useful for faking CI env (defaults to true in CI env)",
|
||||
default=is_ci,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--only-python", action="store_true", help="Only install Python dependencies"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--skip-system",
|
||||
action="store_true",
|
||||
@ -43,14 +46,19 @@ def main():
|
||||
env.ensure_in_venv(__file__, auto_create=True)
|
||||
env.install_requirements()
|
||||
|
||||
colors = env.import_colors()
|
||||
|
||||
if args.only_python:
|
||||
print()
|
||||
print(colors.SUCCESS_TEXT + " Only Python dependencies installed")
|
||||
return
|
||||
|
||||
error = False
|
||||
try:
|
||||
run(args)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
error = True
|
||||
|
||||
colors = env.import_colors()
|
||||
print()
|
||||
|
||||
if error:
|
||||
|
||||
Reference in New Issue
Block a user