Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/3233
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Nov 17, 2018
2 parents 5b08aa0 + ce0ed98 commit 5ce16a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/3222.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pipenv will no longer disable user-mode installation when the ``--system`` flag is passed in.
6 changes: 4 additions & 2 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ def batch_install(deps_list, procs, failed_deps_queue,
extra_indexes = indexes[1:]

with vistir.contextmanagers.temp_environ():
os.environ["PIP_USER"] = vistir.compat.fs_str("0")
if not allow_global:
os.environ["PIP_USER"] = vistir.compat.fs_str("0")
c = pip_install(
dep,
ignore_hashes=any([ignore_hashes, dep.editable, dep.is_vcs]),
Expand Down Expand Up @@ -1899,7 +1900,8 @@ def do_install(
)
# pip install:
with vistir.contextmanagers.temp_environ(), create_spinner("Installing...") as sp:
os.environ["PIP_USER"] = vistir.compat.fs_str("0")
if not system:
os.environ["PIP_USER"] = vistir.compat.fs_str("0")
try:
pkg_requirement = Requirement.from_line(pkg_line)
except ValueError as e:
Expand Down

0 comments on commit 5ce16a9

Please sign in to comment.