Merge pull request #4441 from Morgan-iv/add-system-option-sync

Add --system option to sync command
This commit is contained in:
Frost Ming
2020-08-28 15:34:41 +08:00
committed by GitHub
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.