Add --system option to sync command

This commit is contained in:
Alexey Ivushkin
2020-08-27 20:34:06 +03:00
parent 5a759ba238
commit cd27fa4080
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -664,6 +664,7 @@ def run_open(state, module, *args, **kwargs):
short_help="Installs all packages specified in Pipfile.lock.",
context_settings=CONTEXT_SETTINGS
)
@system_option
@option("--bare", is_flag=True, default=False, help="Minimal output.")
@sync_options
@pass_state
@@ -691,6 +692,7 @@ def sync(
unused=unused,
sequential=state.installstate.sequential,
pypi_mirror=state.pypi_mirror,
system=state.system
)
if retcode:
ctx.abort()
+1
View File
@@ -2883,6 +2883,7 @@ def do_sync(
)
do_init(
dev=dev,
allow_global=system,
concurrent=(not sequential),
requirements_dir=requirements_dir,
ignore_pipfile=True, # Don't check if Pipfile and lock match.