Skip to content

Commit

Permalink
Check for --no-install before --download forces it to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Feb 4, 2015
1 parent 2f8c6ad commit 461d59f
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 461d59f

Please sign in to comment.