Skip to content

Commit

Permalink
respect isolated mode when looking for installed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Maier committed Apr 12, 2016
1 parent 3e7fa5c commit 69dd4ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pip/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def run(self, options, args):
possible_lib_locations = get_lib_location_guesses(
user=options.use_user_site,
home=temp_target_dir,
prefix=options.prefix_path
prefix=options.prefix_path,
isolated=options.isolated_mode,
)
reqs = sorted(
requirement_set.successfully_installed,
Expand Down Expand Up @@ -394,8 +395,6 @@ def run(self, options, args):
return requirement_set


def get_lib_location_guesses(user=False, home=None, root=None, prefix=None):
scheme = distutils_scheme(
'', user=user, home=home, root=root, prefix=prefix
)
def get_lib_location_guesses(*args, **kwargs):
scheme = distutils_scheme('', *args, **kwargs)
return [scheme['purelib'], scheme['platlib']]

0 comments on commit 69dd4ae

Please sign in to comment.