Restore --only-python arg to only install Python deps (#7464)
This commit is contained in:
parent
996fb5c21b
commit
a05cb97074
1 changed files with 10 additions and 2 deletions
|
|
@ -26,6 +26,9 @@ def main():
|
||||||
help="Useful for faking CI env (defaults to true in CI env)",
|
help="Useful for faking CI env (defaults to true in CI env)",
|
||||||
default=is_ci,
|
default=is_ci,
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--only-python", action="store_true", help="Only install Python dependencies"
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--skip-system",
|
"--skip-system",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
@ -43,14 +46,19 @@ def main():
|
||||||
env.ensure_in_venv(__file__, auto_create=True)
|
env.ensure_in_venv(__file__, auto_create=True)
|
||||||
env.install_requirements()
|
env.install_requirements()
|
||||||
|
|
||||||
|
colors = env.import_colors()
|
||||||
|
|
||||||
|
if args.only_python:
|
||||||
|
print()
|
||||||
|
print(colors.SUCCESS_TEXT + " Only Python dependencies installed")
|
||||||
|
return
|
||||||
|
|
||||||
error = False
|
error = False
|
||||||
try:
|
try:
|
||||||
run(args)
|
run(args)
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
error = True
|
error = True
|
||||||
|
|
||||||
colors = env.import_colors()
|
|
||||||
print()
|
print()
|
||||||
|
|
||||||
if error:
|
if error:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue