j
This commit is contained in:
@@ -902,12 +902,6 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
help=
|
||||
"Verify that packages from requirements.txt are importable in the venv (after install)",
|
||||
)
|
||||
p.add_argument(
|
||||
"--no-verify",
|
||||
action="store_true",
|
||||
help=
|
||||
"Skip verification and do not prompt to install missing dependencies; proceed to run with the chosen Python",
|
||||
)
|
||||
p.add_argument(
|
||||
"--headless",
|
||||
action="store_true",
|
||||
@@ -1019,7 +1013,7 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
return False
|
||||
|
||||
# Skip heavy verification if we are just installing/uninstalling a service
|
||||
do_verify = args.verify or (not args.no_verify and not (args.install_service or args.uninstall_service))
|
||||
do_verify = args.verify and not (args.install_service or args.uninstall_service)
|
||||
|
||||
# Prefer the current interpreter if the helper was invoked from a virtualenv
|
||||
# and the user did not explicitly pass --venv. This matches the user's likely
|
||||
@@ -1157,14 +1151,9 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
return 4
|
||||
|
||||
# Default: print a clear warning and proceed to launch with the repository venv
|
||||
if args.no_verify:
|
||||
print(
|
||||
"Repository venv is missing required packages; proceeding without verification as requested ( --no-verify ). Client may fail to start."
|
||||
)
|
||||
else:
|
||||
print(
|
||||
"Warning: repository venv appears to be missing required packages. Proceeding to launch with repository venv; the client may fail to start. Use --install-deps to install requirements into the repo venv."
|
||||
)
|
||||
print(
|
||||
"Warning: repository venv appears to be missing required packages. Proceeding to launch with repository venv; the client may fail to start. Use --install-deps to install requirements into the repo venv."
|
||||
)
|
||||
|
||||
# Service install/uninstall requests
|
||||
if args.install_service or args.uninstall_service:
|
||||
|
||||
Reference in New Issue
Block a user