Skip to content

Commit

Permalink
--target-dir implies --ignore-installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Feb 7, 2012
1 parent 877b5e5 commit d8babe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pip/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def run(self, options, args):
if options.use_user_site:
install_options.append('--user')
if options.target_dir:
options.ignore_installed = True
temp_target_dir = tempfile.mkdtemp()
options.target_dir = os.path.abspath(options.target_dir)
if os.path.exists(options.target_dir) and not os.path.isdir(options.target_dir):
Expand Down

0 comments on commit d8babe7

Please sign in to comment.