Skip to content

Commit 65c3865

Browse files
committed
Extend sanity check on user+prefix to include similar check for home+prefix. Ref pypa#4106.
1 parent e6bc873 commit 65c3865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pip/_internal/locations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def distutils_scheme(dist_name, user=False, home=None, root=None,
156156
# or user base for installations during finalize_options()
157157
# ideally, we'd prefer a scheme class that has no side-effects.
158158
assert not (user and prefix), "user={} prefix={}".format(user, prefix)
159+
assert not (home and prefix), "home={} prefix={}".format(home, prefix)
159160
i.user = user or i.user
160161
if user or home:
161162
i.prefix = ""

0 commit comments

Comments
 (0)