j
This commit is contained in:
@@ -902,12 +902,6 @@ def main(argv: Optional[List[str]] = None) -> int:
|
|||||||
help=
|
help=
|
||||||
"Verify that packages from requirements.txt are importable in the venv (after install)",
|
"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(
|
p.add_argument(
|
||||||
"--headless",
|
"--headless",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
@@ -1019,7 +1013,7 @@ def main(argv: Optional[List[str]] = None) -> int:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# Skip heavy verification if we are just installing/uninstalling a service
|
# 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
|
# 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
|
# and the user did not explicitly pass --venv. This matches the user's likely
|
||||||
@@ -1157,11 +1151,6 @@ def main(argv: Optional[List[str]] = None) -> int:
|
|||||||
return 4
|
return 4
|
||||||
|
|
||||||
# Default: print a clear warning and proceed to launch with the repository venv
|
# 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(
|
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."
|
"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."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user