From cd27fa40802ed78e95ad6da01b9b6a9c30a748ad Mon Sep 17 00:00:00 2001 From: Alexey Ivushkin Date: Thu, 27 Aug 2020 20:34:06 +0300 Subject: [PATCH] Add `--system` option to `sync` command --- pipenv/cli/command.py | 2 ++ pipenv/core.py | 1 + 2 files changed, 3 insertions(+) diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index 811807bbe4..6b9c339226 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -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() diff --git a/pipenv/core.py b/pipenv/core.py index 6e8639ee9c..9ba7cf7acf 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -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.