Skip to content

Commit

Permalink
Fix --site-packages flag is not recognized
Browse files Browse the repository at this point in the history
`site_packages` argument in `cli` function always set to false because `--site-packages` flag was defined in global state (https://github.com/pypa/pipenv/blob/97657b2797b8a8f045776470d74add6048a95b67/pipenv/cli/options.py#L62). 

Fixes #3351
  • Loading branch information
nonylene authored Dec 4, 2018
1 parent 8707fe5 commit 64ae1ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def cli(
python=False,
help=False,
py=False,
site_packages=False,
envs=False,
man=False,
completion=False,
Expand Down Expand Up @@ -198,7 +197,7 @@ def cli(
)
ctx.abort()
# --two / --three was passed…
if (state.python or state.three is not None) or site_packages:
if (state.python or state.three is not None) or state.site_packages:
ensure_project(
three=state.three,
python=state.python,
Expand Down

0 comments on commit 64ae1ed

Please sign in to comment.