Skip to content

Commit

Permalink
Merge pull request pypa#4840 from LKI/fix
Browse files Browse the repository at this point in the history
fix: set `PIPENV_USE_SYSTEM` when sync with `--system`
  • Loading branch information
frostming authored Nov 8, 2021
2 parents 80260db + 0cf585a commit bb3d243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,9 @@ def do_sync(
requirements_dir = vistir.path.create_tracked_tempdir(
suffix="-requirements", prefix="pipenv-"
)
if system:
project.s.PIPENV_USE_SYSTEM = True
os.environ["PIPENV_USE_SYSTEM"] = "1"
do_init(
project,
dev=dev,
Expand Down

0 comments on commit bb3d243

Please sign in to comment.