Skip to content

Commit

Permalink
Add missing --system option
Browse files Browse the repository at this point in the history
Fixes pypa#2227
  • Loading branch information
frostming committed May 21, 2018
1 parent fc7c1f3 commit aca8e12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pipenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,9 @@ def check(
default=None,
help=u"List out–of–date dependencies.",
)
@option(
'--system', is_flag=True, default=False, help="System pip management."
)
@argument('package', default=False)
@pass_context
def update(
Expand Down Expand Up @@ -794,6 +797,7 @@ def update(
python=python,
bare=bare,
verbose=verbose,
system=system,
sequential=sequential,
)
else:
Expand Down Expand Up @@ -929,12 +933,16 @@ def run_open(module, three=None, python=None):
default=False,
help="Install dependencies one-at-a-time, instead of concurrently.",
)
@option(
'--system', is_flag=True, default=False, help="System pip management."
)
@pass_context
def sync(
ctx,
dev=False,
three=None,
python=None,
system=False,
bare=False,
dry_run=False,
verbose=False,
Expand All @@ -950,6 +958,7 @@ def sync(
dev=dev,
three=three,
python=python,
system=system,
bare=bare,
verbose=verbose,
sequential=sequential,
Expand Down
2 changes: 2 additions & 0 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,7 @@ def do_sync(
dev=False,
three=None,
python=None,
system=False,
bare=False,
verbose=False,
sequential=False,
Expand All @@ -2563,6 +2564,7 @@ def do_sync(
do_init(
dev=dev,
verbose=verbose,
system=system,
concurrent=(not sequential),
requirements_dir=requirements_dir,
ignore_pipfile=True, # Don't check if Pipfile and lock match.
Expand Down

0 comments on commit aca8e12

Please sign in to comment.