mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Add --system option to sync command
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user