mirror of https://github.com/pypa/pip
Extend sanity check on user+prefix to include similar check for home+prefix. Ref #4106.
This commit is contained in:
parent
e6bc873698
commit
65c38650f6
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in New Issue