From 461d59f41eb7f770bb84758c106d229aedc99a7a Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Wed, 4 Feb 2015 14:30:37 -0500 Subject: [PATCH] Check for --no-install before --download forces it to be set --- pip/commands/install.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pip/commands/install.py b/pip/commands/install.py index 367bc594e84..52062c32c64 100644 --- a/pip/commands/install.py +++ b/pip/commands/install.py @@ -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)