Skip to content

Commit

Permalink
Extend sanity check on user+prefix to include similar check for home+…
Browse files Browse the repository at this point in the history
…prefix. Ref pypa#4106.
  • Loading branch information
jaraco committed Nov 12, 2018
1 parent e6bc873 commit 65c3865
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pip/_internal/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def distutils_scheme(dist_name, user=False, home=None, root=None,
# or user base for installations during finalize_options()
# ideally, we'd prefer a scheme class that has no side-effects.
assert not (user and prefix), "user={} prefix={}".format(user, prefix)
assert not (home and prefix), "home={} prefix={}".format(home, prefix)
i.user = user or i.user
if user or home:
i.prefix = ""
Expand Down

0 comments on commit 65c3865

Please sign in to comment.