Skip to content

Commit

Permalink
Merge pull request pypa#2398 from dstufft/download-uses-randomized
Browse files Browse the repository at this point in the history
Check for --no-install before --download forces it to be set
  • Loading branch information
dstufft committed Feb 4, 2015
2 parents 2f8c6ad + 461d59f commit 9e52313
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pip/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,16 @@ def run(self, options, args):
RemovedInPip7Warning,
)

if options.download_dir:
options.no_install = True
options.ignore_installed = True

# If we have --no-install or --no-download and no --build we use the
# legacy static build dir
if (options.build_dir is None
and (options.no_install or options.no_download)):
options.build_dir = build_prefix

if options.download_dir:
options.no_install = True
options.ignore_installed = True

if options.build_dir:
options.build_dir = os.path.abspath(options.build_dir)

Expand Down

0 comments on commit 9e52313

Please sign in to comment.